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

Your name:

Reply:


Posted by Jochem Maas on 01/21/05 15:42

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.

>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация