OK Ich glaube das bringt mich ein gutes STück weiter. Ich habe mir WinHttp Help angeschaut und denke ich benötige hier _WinHttpSimpleSSLRequest. Hier mal das example:
Code
#include "WinHttp.au3"
Opt("MustDeclareVars", 1)
; !!!Note that this example will fail because of invalid username and password!!!
; Use real data for authentication
Global $sUserName = "SomeUserName"
Global $sPassword = "SomePassword"
Global $sDomain = "www.google.com"
Global $sPage = "accounts/ClientLogin"
; Visit http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html for more informations
Global $sAdditionalData = "accountType=HOSTED_OR_GOOGLE&Email=" & $sUserName & "&Passwd=" & $sPassword & "&service=mail&source=Gulp-CalGulp-1.05"
; Initialize and get session handle
Global $hOpen = _WinHttpOpen()
; Get connection handle
Global $hConnect = _WinHttpConnect($hOpen, $sDomain)
; SimpleSSL-request it...
Global $sReturned = _WinHttpSimpleSSLRequest($hConnect, "POST", $sPage, Default, $sAdditionalData)
; Close handles
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hOpen)
; See what's returned
MsgBox(0, "Returned", $sReturned)
Alles anzeigen
Ich habe dementsprechend die Variablen wie login, host, site, etc. ersetzt. Ich bekomme natürlich einen Fehler zurück da ich ja noch gar keinen XML content an den POST gehangen habe. Wenigstens bekomme ich schon mal was zurück
Ich habe das mal probiert als $AdditionalData bzw. String einzufügen. Wenn ich es in Anführungszeichen mit Absätzen versuche, meckert AutoIT nach jeder spitzen geschlossenen Klammer (vlt auch Absatz) "unterminated string".
Wenn ich alle Absätze entferne dann meckert AutoIT "Uknown function" Ist das jetzt zu lang für WinHttp oder mache ich was falsch?