Re: Re: [suspicious - maybe spam] [PHP] Re: How to access remote files with php?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sephiroth wrote:
The error message:

HTTP/1.0 400 Bad Request Server: squid/2.5.STABLE5 Mime-Version: 1.0 Date:
Fri, 21 Jan 2005 01:48:05 GMT Content-Type: text/html Content-Length: 1213
Expires: Fri, 21 Jan 2005 01:48:05 GMT X-Squid-Error: ERR_INVALID_URL 0
X-Cache: MISS from ns1.autoera.com.tw X-Cache-Lookup: NONE from
ns1.autoera.com.tw:3128 Proxy-Connection: close

looks like your talking to a badly configured Squid server. or that it is not getting the correct headers from PHP when you use file_*() functions on the url in question. does the URL work from a browser?


otherwise why not try hitting port 80 instead (assuming that allowed) and bypass the Squid server (port 3128, which is the default) and talk directly to the webserver, at least to test what your doing - I assume that Squid should be acting in reverse-proxy mode which when setup properly is transparent.

---

btw: Squid is a generic proxy/cache/reverse-proxy server which is:

a powerful
b complex

six people on the world understand it properly, and I'm not one of them ;-) - my way of configuring Squid is to say to a colleague 'I need a reverse-proxy on site X , would you be so kind...', which actually makes it very easy to setup ;-)


ERROR

The requested URL could not be retrieved

so the URL wrappers for file streams (is my terminology correct? anyone?) is working - but the file you are opening is not available.




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux