> I've a bunch of PHP program that heavily depends
> on remote services via fopen("http://...",...) costruct.
>
> Now I've installed mod_gzip on the remote server
> and so if I can specify "Accept-Encoding: gzip,deflate" in
> my http header request, I can have a (much) smaller network traffic.
>
> My question: how can I specify a custom HTTP header
> in the fopen("http://...",...) function ???
i think the best way is to use
http://www.php.net/manual/en/function.fsockopen.php
and send your your own headers...
mvgr,
Joffrey van Wageningen
ps/1: hows the smog in milano? :P
--
.-[ Joffrey van Wageningen | WoLFjuh | [EMAIL PROTECTED] ]--------------
| Networking Event 2000 - www.ne2000.nl - IRCnet:#ne2000, Undernet:#clue
| PGP:1024D/C6BA5863 - 3B93 52D3 CB91 9CB7 C50D FA79 865F 628A C6BA 5863
| * We demand guaranteed rigidly defined areas of doubt and uncertainty.
| -- Douglas Adams
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]