php - Squid Proxy Returns Different Error Messages For HTTP vs. HTTPS -
i'm using php 5.3.13 curl extension 7.25.0 on windows 7 pro 64-bit laptop. connecting upstream squid v3.3.10 proxy server using php , curl. authenticating proxy using basic authentication.
the problem i'm experiencing different error messages php curl_error($ch) function when try connect http url vs. https url via proxy. when purposely send bad authentication credentials proxy using http url, error message receive php curl_error($ch) function is:
the requested url returned error: 407
when sent same request using bad credentials https url receive following message php curl_error($ch) function:
http response code said error
the http url response expect, meaning returns http error code (407 because of bad credentials). https url error message doesn't return http code @ all. i'm trying understand why happens can account these different responses in error handler project. have experience issue? squid proxy https authentication configuration issue?
any appreciated!
-- bill vallance
i found answer question quite accident. when upgraded php in wampserver 2.2e development environment 5.3.13 5.4.45 discovered php 5.4.45 doesn't return http response code said error
message. doesn't return anything, kind of expected happen when https error involved. error message generated php 5.3.13 not php 5.4.45.
Comments
Post a Comment