Server removes all custom HTTP header fields

Posted by MartinMoizard on Stack Overflow See other posts from Stack Overflow or by MartinMoizard
Published on 2011-01-17T12:39:00Z Indexed on 2011/01/17 12:53 UTC
Read the original article Hit count: 389

Filed under:
|
|
|

Hello,

I've been trying to receive HTTP requests with custom fields in the headers but it seems like my server removes them...

I printed the headers of the request when I arrive on my page.php. I see that :

body 
uri http://url.com/oauth.php/request_token
parameters 
headers Array
....*/*
....gzip, deflate
....en-us
....keep-alive
....s320650601.onlinehome.fr
....DearStranger/1.0 CFNetwork/485.12.7 Darwin/10.6.0
method POST

when I should be seeing that (it is working on a local version)

body 
uri http://localhost:8888/oauth.php/request_token
parameters 
headers Array
....*/*
....gzip, deflate
....en-us
....OAuth realm="", oauth_consumer_key="582d95bd45d455fa2e5819f88fc0c5a104d2c7ff3", oauth_signature_method="HMAC-SHA1", oauth_signature="7mKKzEw0Clv237nBHFzcTcA3SCE%3D", oauth_timestamp="1295267612", oauth_nonce="C546644E-8918-4FA3-A2A0-DAADCF7D1E5A", oauth_version="1.0"
....keep-alive
....0
....localhost:8888
....DearStranger/1.0 CFNetwork/485.12.7 Darwin/10.6.0
method POST

I am using php 5.2.17 on the server.

Do you have any idea to help my fix that issue?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about http