Jump to content

Recommended Posts

Posted

Hi,

I want to be logged in with Mozilla on www.autoIt.de and this Script did work, but only for a few minutes.

Is there a possible that the Script will always work?

$Username = "Greek"
$Passwort = "pw"

TCPStartup()

$Socket = TCPConnect(TCPNameToIp("www.autoit.de"), 80)

$post="loginUsername="&$Username&"&loginPassword="&$Passwort&"&url=%2Findex.php%3Fform%3DUserLogine56b99e1&x=7&y=7&useCookies=1"
$head="POST /index.php?form=UserLogin HTTP/1.1"& @CRLF & _
      "Host: www.autoit.de"& @CRLF & _
      "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"& @CRLF & _
      "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"& @CRLF & _
      "Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3"& @CRLF & _
      "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"& @CRLF & _
      "Keep-Alive: 300"& @CRLF & _
      "Connection: keep-alive"& @CRLF & _
      "Referer: http://www.autoit.de/"& @CRLF & _
      "Cookie: wcf_boardLastActivityTime=1243601464; wcf_cookieHash=ef34f08b3fa1169a17175c0f7f81ae6ee56b99e1; wcf_userID=0; wcf_password="& @CRLF & _
      "Content-Type: application/x-www-form-urlencoded"& @CRLF & _
      "Content-Length: "&StringLen($post) & @CRLF & @CRLF & $post

TCPSend($Socket, $Head)



While 1
    $sRecv = TCPRecv($Socket, 2024)
    If $sRecv <> "" Then
        While 1
            $sRecv &= TCPRecv($Socket, 2024)
            If @error Then ExitLoop 2
        WEnd
    EndIf
WEnd

FileWrite(@ScriptDir&"\daten.txt", $sRecv)
Posted

what are you expecting this script to do other than opening the homepage?

Just Loggin with 1 Click on Mozilla.

  • Developers
Posted

Just Loggin with 1 Click on Mozilla.

Should it Login with the script or your browser (IE)?

What does it return ? ( we cannot test unless we have a userid to test with)

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Should it Login with the script or your browser (IE)?

What does it return ? ( we cannot test unless we have a userid to test with)

Jos

It logs me in with the Script, but i want to be logged in with Mozilla. ( And that did work, but only a few minutes )

Posted (edited)

Should it Login with the script or your browser (IE)?

What does it return ? ( we cannot test unless we have a userid to test with)

Jos

here for testing Jos

*****

Edited by Jos
removed userid/psw
  • Developers
Posted

It logs me in with the Script, but i want to be logged in with Mozilla. ( And that did work, but only a few minutes )

If you want the script to login your Firefox session then why aren't you using ff.au3 available in the examples forum?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

If you want the script to login your Firefox session then why aren't you using ff.au3 available in the examples forum?

Never tried them and the Script did work a few minutes, so wanted to make it with TCP...

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...