So moin Leuts ich will mich mit WinHttp beschäftigen und Will es mit EPVP verbinden alles was ich dazu brauch hab ich eig oder nicht?
Ich hab das Skript von ner Website und natürlich mit Erkärung usw nicht das Ihr denkt nur Copy & Paste
Es Funktioniert bei NosHacks aber bei EPVP nicht warum?
Infos
Code:
#include <WinHTTP.au3>
$hw_open = _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1")
$hw_connect = _WinHttpConnect($hw_open, "www.elitepvpers.com")
$iAccount = "DeinAccount"
$iPasswort = "DeinPasswort"
$iPost = _Post("vb_login_username=" & $iAccount & "&vb_login_password=" & $iPasswort & "&cookieuser=1&s=&securitytoken=guest&do=login&vb_login_md5password=&vb_login_md5password_utf=", "/forum/login.php?do=login")
If (StringInStr($iPost, "erfolgreich") <> 0) Then
MsgBox(0, "EPVP Login", "Erfolgreich")
Else
MsgBox(0, "EPVP Login", "Fehlgeschlagen")
EndIf
Func _Post($Post, $Link)
Local $data = ""
$h_openRequest = _WinHttpOpenRequest($hw_connect, "POST", $Link, "HTTP/1.1")
_WinHttpSendRequest($h_openRequest, "application/x-www-fForm-urlencoded" & @CRLF, $Post)
_WinHttpReceiveResponse($h_openRequest)
Do
$data &= _WinHttpReadData($h_openRequest)
Until @error
_WinHttpCloseHandle($h_openRequest)
Return $data
EndFunc ;==>_Post
Func _Get($Link)
Local $data = ""
$h_openRequest = _WinHttpOpenRequest($hw_connect, "GET", $Link, "HTTP/1.1")
_WinHttpSendRequest($h_openRequest, "application/x-www-form-urlencoded")
_WinHttpReceiveResponse($h_openRequest)
Do
$data &= _WinHttpReadData($h_openRequest)
Until @error
_WinHttpCloseHandle($h_openRequest)
Return $data
EndFunc ;==>_Get
Ich denke die, die es Wissen benutzen fürs auslesen der Pakete usw Live Html Headers
Ich Danke schon mal an alle die Helfen
Mfg Blue