Re: open files via http
| From: | Manuel Lemos | Date: | Sun, 25 Jul 1999 18:41:40 +0000 |
| Subject: | Re: open files via http | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-9144@lists.php.net to get a copy of this message | ||
Hello Jay,
On 25-Jul-99 21:31:02, you wrote:
>There are a few problems with opening of files
>via http right now. First is that most web servers
>are tuned to handle the new 4.0 browsers. If they
>don't see the right browser they throw bad files
>at you. If they don't see the right referer string,
>they also throw bad files at you. If they don't see
>the right cookie yet again they throw bad files at
>you. Stop this craziness!
>So when requesting a file.
>There needs to be more options.
>HTTP_USER_AGENT:
>HTTP_CONNECTION:
>HTTP_ACCEPT:
>HTTP_ACCEPT_LANGUAGE:
>HTTP_COOKIE:
>HTTP_REFERER:
>The ability set or add these prior to any connection
>would help!
I'm afraid the HTTP/FTP support in fopen is not intended to support all
possible options of the requests of these protocols. If it was, PHP would
turn out to get almost as bloated as a Web browser.
>I am badly in need of setting these options. Can some
>tell me, is it a possibility of adding these options
>into PHP?
You may want to try this PHP class that implements HTTP client requests.
Look here:
http://phpclasses.UpperDesign.com/browse.html?package=3
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
--
E-mail: mlemos@acm.org
URL: http://www.mlemos.e-na.net/
PGP key: finger://mlemos@zeus.ci.ua.pt
--