Re: ext/soap and http header

From: Date: Tue, 30 Sep 2008 06:14:55 +0000
Subject: Re: ext/soap and http header
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-40802@lists.php.net to get a copy of this message
Dmitry Stogov wrote:
Hi Rasmus, Rasmus Lerdorf wrote:
Dmitry Stogov wrote:
Hi Brian, I think you patch does the things you like properly, but why do we need such ability? I don't see a use-case. In case of accepting this patch, we also need to care about duplicate headers.
Some web services require custom headers for authentication or to bounce along information about the originating request in order to do proper logging and accounting about which top-level users are causing the backend web services requests.
Could you give an example.
Well, for one a bunch of the internal Yahoo web services require a certificate header. I doubt we are the only Web company who needs to authenticate the higher-level users of lower-level web services. We are running with Brian's patch now, but I don't really see the reason not to make it possible for people to set custom headers on web services requests. Another example is the Weather Underground API. They ask you to set the User-Agent to your email address so they can contact you if your app starts causing them problems. -Rasmus

« previous php.internals (#40802) next »