New topic: 

HTTPSocket.Post

<http://forums.realsoftware.com/viewtopic.php?t=46357>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        kript0x          Post subject: HTTPSocket.PostPosted: Wed Dec 
26, 2012 8:17 pm                         
Joined: Fri Jul 20, 2012 2:09 pm
Posts: 32                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:


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.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to