Re: how to specify custom http header in fopen("http://...",...)

From: Date: Tue, 29 Jan 2002 10:40:39 +0000
Subject: Re: how to specify custom http header in fopen("http://...",...)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82546@lists.php.net to get a copy of this message
> 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 | joffrey@ne2000.nl ]-------------- | 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

« previous php.general (#82546) next »