|
You last visited: Today at 01:57
Advertisement
_WinHTTP ~> Https
Discussion on _WinHTTP ~> Https within the AutoIt forum part of the Coders Den category.
12/14/2010, 17:55
|
#1
|
elite*gold: 20
Join Date: Nov 2009
Posts: 2,256
Received Thanks: 1,570
|
_WinHTTP ~> Https
ich hab folgendes problem:
ich möchte mit WinHttp mein Guthaben auf Paysafecard.com prüfen 
Nur hat die Seite wo man das Prüft "Https://" anstadt "Http://".
Ich kann Https: bei WinHttp nicht nutzen.
und ohne Https: funktioniert auch nichts....
EDIT:
jetzt klappt zwar alles allerdings kommt man nicht auf die seite wo das Guthaben angezeigt wird 
man kommt nur auf eine weiße Seite mit etwas schrift
neuer code:
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <WinHttp.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form", 171, 294, 192, 124)
$Label1 = GUICtrlCreateLabel("Code", 56, 56, 52, 17)
$Input1 = GUICtrlCreateInput("", 24, 80, 25, 21)
$Input2 = GUICtrlCreateInput("", 56, 80, 25, 21)
$Input3 = GUICtrlCreateInput("", 88, 80, 25, 21)
$Input4 = GUICtrlCreateInput("", 120, 80, 25, 21)
$Label2 = GUICtrlCreateLabel("Passwort", 56, 128, 55, 17)
$Input5 = GUICtrlCreateInput("", 24, 152, 121, 21)
$Button1 = GUICtrlCreateButton("Check", 24, 264, 123, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$HTTP_HOST = "customer.cc.at.paysafecard.com"
$HTTP_AGENT = _WINHTTPOPEN("Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5")
$HTTP_CONNECT = _WINHTTPCONNECT($HTTP_AGENT, $HTTP_HOST,$INTERNET_DEFAULT_HTTPS_PORT)
$HTTP_REQUEST = _WINHTTPOPENREQUEST($HTTP_CONNECT, "POST", "/psccustomer/GetWelcomePanelServlet?&language=de","HTTP/1.1", $WINHTTP_NO_REFERER, $WINHTTP_DEFAULT_ACCEPT_TYPES, $WINHTTP_FLAG_SECURE)
$HTTP_REQUEST2 = _WINHTTPOPENREQUEST($HTTP_CONNECT, "GET", "/seam/resource/captcha", "HTTP/1.1",$WINHTTP_NO_REFERER, $WINHTTP_DEFAULT_ACCEPT_TYPES, $WINHTTP_FLAG_SECURE)
_WINHTTPSENDREQUEST($HTTP_REQUEST2)
_WINHTTPRECEIVERESPONSE($HTTP_REQUEST2)
$HTML = ""
$READ = ""
Do
$READ &= _WINHTTPREADDATA($HTTP_REQUEST2,2)
Until @error
FileDelete("captcha.png")
$open = FileOpen("captcha.png",18)
FileWrite($open,$READ)
FileClose($open)
ShellExecute("captcha.png")
$1 = Inputbox(0,0,"")
$POST = "mainPagePart=mainPagePart&mainPagePart%3Arn1="&GUICtrlRead($Input1)&"&mainPagePart%3Arn2="&GUICtrlRead($Input2)&"&mainPagePart%3Arn3="&GUICtrlRead($Input3)&"&mainPagePart%3Arn4="&GUICtrlRead($Input4)&"&mainPagePart%3ApassField="&GUICtrlRead($Input5)&"&mainPagePart%3AverifyCaptcha="&$1&"&mainPagePart%3Anext=Absenden&javax.faces.ViewState=j_id"&Random(1,500,1)
_WINHTTPSENDREQUEST($HTTP_REQUEST, "Content-Type: application/x-www-form-urlencoded" & @CRLF, $POST)
_WINHTTPRECEIVERESPONSE($HTTP_REQUEST)
Do
$HTML &= _WINHTTPREADDATA($HTTP_REQUEST)
Until @error
FileWrite("text.html", $HTML)
EndSwitch
WEnd
|
|
|
12/16/2010, 10:40
|
#2
|
elite*gold: 0
Join Date: Feb 2009
Posts: 53
Received Thanks: 20
|
Vielleicht hilft das weiter:
|
|
|
Similar Threads
|
[S]Gtc [B]https://secretsline.biz account
12/13/2010 - World of Warcraft Trading - 2 Replies
'Hallo,
ich biete hier einen https://secretsline.biz account an für eine Wow Gtc
Auf dem Accout befinden sich 13.70 €
Mfg
|
All times are GMT +2. The time now is 01:57.
|
|