View unanswered posts | View active topics It is currently September 9th, 2010, 4:14 am



Reply to topic  [ 1 post ] 
Issue #20 - POSTs become GETs with empty request body 
Author Message
Site Admin

Joined: May 30th, 2008, 1:31 pm
Posts: 370
Location: Austin, TX
Post Issue #20 - POSTs become GETs with empty request body
If you specify a POST type request, but you call send() or send("") or send(null) or send(false) -- basically, any type of empty request body, Flash has a bug where it will convert the request to a GET.

The problem with this is that pursuant to this bug on GETs and request headers dropping, if you have any request-headers defined for your POST, like "Content-type" or even "Authorization" (or used the username/password parameters to open(...) method), such request-headers will be summarily dropped when Flash converts it to a GET request.

The only known workaround is to send a non-empty body to get it to respect your POST method. You can send "." or " " or something else. Just make sure that you're sending something that won't screw up or confuse the target server.

_________________
Kyle Simpson
flensed Administrator
Getify Solutions, Inc.


September 17th, 2009, 4:06 pm
Profile E-mail WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF