KBD

Keith Devens .com

Friday, January 9, 2009 Flag waving
"I am a leaf on the wind. Watch how I soar." – 'Wash' (Serenity, 2005)
← My XML-RPC library is just about done →

Daily link icon Thursday, April 11, 2002

$HTTP_RAW_POST_DATA

What the (censored)?! I need to get the raw post data from a PHP script, and there's no documented way to do it. The usefulinc XML-RPC library uses $HTTP_RAW_POST_DATA, and if you search on the PHP site that variable was documented, but it's not anymore since they created the "superglobals" and reorganized the documentation.

Oh yeah, the main reason I'm upset is that I'm trying to use $HTTP_RAW_POST_DATA because that's what the XML-RPC library uses, but it's not working for me... aaaargh!!

Hey, it turns out that $HTTP_RAW_POST_DATA does work, it's just that it doesn't show up if the type of data you send is plain =application/x-www-form-urlencoded=, but it does show up if you use something like =text/xml= Smiley

← My XML-RPC library is just about done →

Comments XML gif

trav (http://travis.kroh.net) wrote:

$HTTP_RAW_POST_DATA=isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:file_get_contents("php://input");

∴ trav | 5-Jul-2006 11:34pm est | http://travis.kroh.net | #9539

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

January 2009
SunMonTueWedThuFriSat
 123
45678910
11121314151617
18192021222324
25262728293031



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 3 posts

Recent comments XML

The Elegant Universe

Well I have finally found the crazy​guy that preaches useless nonsence​in A...

Joseph Baxter: Jan 7, 11:07pm

I hate Norton Antivirus


SYMANTEC is very​cunning..
Symantec now have a​redeemable cash back offe...

CAN: Jan 4, 6:25pm

Spider solitaire

Hi everyone!

Glad to have found​this site.  I have enjoyed reading​the c...

flwrchld53: Jan 4, 5:30pm

Generated in about 0.185s.

(Used 8 db queries)

mobile phone