flash post format

in Script development
Subscribe to flash post format 4 posts, 2 voices



smk Scriptwright
FirefoxWindows

i'm trying to emulate a post request in flash
here's what firebug has:


-----
url:
-----
http://jiggmin2.com/games/PlatformRacing2/pr2_login.php?random_num=0.11408945405855775

-----------
params tab:
-----------

random_num	0.11408945405855775

-------------
headers tab:
-------------

Response Headers

Date	Sun, 08 Nov 2009 05:02:30 GMT
Server	Apache
X-Powered-By	PHP/5.2.4-2ubuntu5.3
Expires	Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control	no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma	no-cache
Content-Length	31
Connection	close
Content-Type	text/html

Request Headers

Host	jiggmin2.com
User-Agent	Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Accept	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language	en-us,en;q=0.5
Accept-Encoding	gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	300
Connection	keep-alive
Cookie	PHPSESSID=3a8612f88baccbec023905b110c6779f

---------
post tab:
---------

Source
Referer: http://uploads.ungrounded.net/439000/439395_pr2_loader.swf/[[DYNAMIC]]/1
Content-type: application/x-www-form-urlencoded
Content-length: 137

user%5Fname=abcjk&port=9163&user%5Fpass=abcjk&login%5Fid=478&server=67%2E207%2E148%2E215&version=0%2E34&domain=uploads%2Eungrounded%2Enet

any idea how i can emulate this?
i posted the actual username and password, since getting one isn't hard at all

the page is:
http://www.newgrounds.com/portal/view/439395

thanks

 
smk Scriptwright
FirefoxWindows

nevermind, solved it
issue was that I forgot to include

'Content-type': 'application/x-www-form-urlencoded'

 
Avindra V.G. Scriptwright
FirefoxWindows

Ha, I had a feeling. This should be the default, but the maintainers of GM disagreed.

 
smk Scriptwright
FirefoxWindows

well, the issue seems to be closed, but I guess it's still good to put a warning if the user forgot about it
I hate errors when it's so hard to find out the problem, and there's absolutely no indication where the bug's coming from

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel