Jump to content

How to log in a sever with autoit?


Recommended Posts

Hi guys, I wonder how to connect to a website with AutoIt

I've tried the way that I searched in this forum but it didnt work!

Here is what I found, I want to send a form to an PHP site and get back the source code (or just the information to confirm that the login success!)

$src=_INetGetSource("http://matrixinc.comze.com/login.php&username=something&password=someotherthing");Just example
FileWrite(@ScriptDir&"\trial.txt",$src);

I mean the way to submit a form and receive code back ^^!

And if this has been discussed before, please excuse me, because I've never worked on something like that so I just made up some keywords to search T__T

THanks guys in advanced!

Edited by nht3004

for(loop=0; loop<infinity; loop++) { alert('I love you'); }

Link to comment
Share on other sites

Try this,

#include <INet.au3>
FileWrite(@ScriptDir & "\trial.txt", _INetGetSource("http://matrixinc.comze.com/"))
If FileExists("trial.txt") Then Run("notepad trial.txt")

Thanks, but I mean to submit a form to a website and the problem is I can't login if I just simply go to the link http://matrixinc.comze.com/mail.php&id=something&password=someotherthing :blink:.

A little explain in HTML:

<form name='logIn' method='GET' target='mail.php'>
<input name='id'><input name='password'>
</form>

All I want to do is submit that form using autoit and get the source code back!

for(loop=0; loop<infinity; loop++) { alert('I love you'); }

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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