[PHP] how to specify custom http header in fopen(http://...,...)
Hello all, 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 ??? Any help will be highly appreciated. TIA /gp -- anyone can create a cryptography product that he himself cannot break. Bruce Schneier If you don't know the things, study them. g.p. But writing non-free software is another matter. Non-free software is a plan for subjugating and dividing the people who use it--an antisocial practice. Our goal is to bring that practice to a halt. Richard Stallman Gian Paolo Cicerivia B.Diotti 45 - 20153 Milano MI ITALY CTO @ Louise mobile : ++39 348 3658272 eMail : [EMAIL PROTECTED], [EMAIL PROTECTED] -- 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]
Re: [PHP] how to specify custom http header in fopen(http://...,...)
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]