Du darfst um den JSON-Bezeichner (apikey) keine Stringliterale haben. Als WinHttp-UDF Script (mit SimpleRequest und nicht als Open,Set,Send) sieht das ganze so aus:
Ich hab dir die beiden Includes und die Calltipdatei angehangen.
AutoIt
#include <WinHttp.au3>
Global $sAPI_Key = "asd"
$hSession = _WinHttpOpen("useragent")
$hConnect = _WinHttpConnect($hSession, "api.thetvdb.com", 443)
$sPost = _WinHttpSimpleSSLRequest($hConnect, "POST", "login", Default, "{apikey: """ & $sAPI_Key & """}", "Accept: application/json" & @CRLF & "Content-Type: application/json; charset=utf-8")
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)
MsgBox(64, "Info", $sPost)
Alles anzeigen