Jump to content

Recommended Posts

Posted (edited)

Hello

I am trying to figure out how to Post data to a website and then Navigate to the website in an Embedded IE and be Logged in, I had found the following code which logs me in perfectly, but then in the Embedded IE I am not logged in, After some googling, I don't think this would be the correct way to do it, but am having troubles figuring out how to do it.

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
;Post request
$oHTTP.Open("POST", "http://LOGINSITE" , False)
;Add User-Agent header
$oHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 4.0.20506)")
;Add Referrer header
$oHTTP.SetRequestHeader("Referrer", "http://RFERRER")
;Add Content-Type
$oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
;Send POST request
$oHTTP.Send("password=password&username=username")
;Get received data
$oReceived = $oHTTP.ResponseText

I have also tried using _WinHttpSendRequest I just changed the example to fit my site and data, but it still does not log me in, in the Embedded IE..

Edited by Agent29
Posted

Bump...

Is this even possible? If that isn't possible.

The login form on the website is built in flash, How would I use autoit to log in, in an Embedded IE...?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...