You are here: $_REQUEST empty despite $HTTP_RAW_POST_DATA being full?!? « All PHP « IT news, forums, messages
$_REQUEST empty despite $HTTP_RAW_POST_DATA being full?!?

Posted by Jure Erznoznik on 10/13/40 11:30

Hi guys,

I have an interesting problem:
I'm calling a small PHP 5.0.4 script to obtain a bit of information using
XMLHTTP object and POST method.
While PHP / Windows receives the post stream fine and fills up the $_POST
and $_REQUEST arrays, the linux version does not.
error_log() - ging shows that the respective arrays are empty, but the
$HTTP_RAW_POST_DATA contains the appropriate information.

I have checked the php.ini file on both servers and found no relevant
differences.
However i noticed that the $_SERVER array contains "content-type" set to
"application/xml" instead of text/plain which is actually what i send.
GET data gets parsed correctly, but i need post in this case :(

What am i missing here? Why does the post data not get parsed on the linux
server?

Any help greatly appreciated,
Jure

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация