Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun May 28, 2017 1:41 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: HTTPSocket.Post
PostPosted: Wed Dec 26, 2012 8:17 pm 
Offline

Joined: Fri Jul 20, 2012 2:09 pm
Posts: 33
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group