Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

headers problem?

Status
Not open for further replies.

DaZZleD

Programmer
Oct 21, 2003
886
US
I am using a class to send POST requests to a page with then redirects me to another. running all this on the local host (windows xp), everything works ok. on the server (win 2003), instead of setting the headers for redirection, php simply outputs them to the page. what could be the problem?

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Can you show your code? Might be a missing (or extra) quote...

Bastien

Cat, the other other white meat
 
it works on windows XP... so there's no extra quote. however I remember reading an article about windows 2003 IIS having a bug about using headers that contain -. this must be it...

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
before sending the headers I clear the output buffer so there's no way anything is outputted before ...

can't seem to find out why it isn't working though

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
it seems to have been that problem with IIS 6 not accepting headers containing - like Content-Type

to fix this, use regedit, go to
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters
and add the following DWORD:
AllowWeakHeaderNameSyntax (with value 1)

for extra loosnes, also add
AllowCaseInsensitiveVerbs (with value 1)

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top