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

From: Date: Tue, 29 Jan 2002 09:58:21 +0000
Subject: how to specify custom http header in fopen("http://...",...)
Groups: php.general 
Request: Send a blank email to php-general+get-82541@lists.php.net to get a copy of this message
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 Ciceri via B.Diotti 45 - 20153 Milano MI ITALY CTO @ Louise mobile : ++39 348 3658272 eMail : gp.ciceri@acm.org, gp.ciceri@louise.it

« previous php.general (#82541) next »