Real Software Forums
http://forums.realsoftware.com/

HTTPSocket.Post
http://forums.realsoftware.com/viewtopic.php?f=2&t=46357
Page 1 of 1

Author:  kript0x [ Wed Dec 26, 2012 8:17 pm ]
Post subject:  HTTPSocket.Post

Hey guys I'm trying to log in to a webpage using POST, but I haven't done this before.

This is the post data I got when inspecting the page:
Image

I download the page with a .get and then from the content I get that _token key and fields, then I try to post it like this:

Dim form As Dictionary
form = New Dictionary
form.Value("data[_Token][key]") = tokenkey
form.Value("data[User][email]") = app.username
form.Value("data[User][password]") = app.password
form.Value("data[User][remember_me]") = "0"
form.Value("data[_Token][fields]") = TokenKeyField
dim h as new http
h.SetFormData(form)
h.Post("http://f0ll0wmy.tv/login") // 0 should be o


but in http.PageReceived I get a blank content and a 404 as error.

Any help would be greatly appreciated.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/