Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIt Website Login

Discussion on AutoIt Website Login within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 3
Join Date: Nov 2017
Posts: 10
Received Thanks: 1
Question AutoIt Website Login

I have a problem creating a Login with AutoIt for mylolsim.net.

I gathered the POST packet used for login and tried to use it in AutoIT, but no matter how I implement the stuff I get a response saying: <font color='red'>This username does not exist.</font>



I would really appreciate any given help!
Thanks in advance.



R4pTix is offline  
Old 09/07/2019, 01:24   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 271
Received Thanks: 94
Quote:
Originally Posted by R4pTix View Post
I have a problem creating a Login with AutoIt for mylolsim.net.

I gathered the POST packet used for login and tried to use it in AutoIT, but no matter how I implement the stuff I get a response saying: <font color='red'>This username does not exist.</font>



I would really appreciate any given help!
Thanks in advance.
Change
Code:
$login_packet = 'username: '& $Username
;...
$login.SetRequestHeader('Content-Type', 'text/html; charset=UTF-8')
To
Code:
$login_packet = 'username='&$Username&'&password='&$Password
;...
$login.SetRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8')
Then on login response u will get something like this:
<script>window.location.href = 'index.php';</script>

So u need to make a http request with response cookie to that url
To get response headers use this
Code:
;...
$sourcecode = $login.ResponseText()
$headers = $login.getAllResponseHeaders()
MsgBox(0,"",$headers)
;Specific header
$cookie = $login.getResponseHeader("Set-Cookie")
elmarcia is offline  
Thanks
2 Users
Reply



« Need help Converting AutoHotKey Script to AutoIt | - »



All times are GMT +2. The time now is 02:24.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.