Hallo mein Problem ist ich würde gerne mit autoit per tcp auf einen server conencten und dann nachruchten zurückbekommen.
Hier ist mein aktueller scriopt klappt aber leider noch nicht. Hab mir Forum schon durchgeschaut aber da ist ja nur beispiel mit autoit server wie abe jetzt mit einem web server?
Spoiler anzeigen
;Client
Global $IP = "85.114.135.24"
Global $PORT = 80
Global $Connect = -1, $Recv
TCPStartup()
While $Connect = -1
$Connect = TCPConnect($IP, $PORT)
WEnd
While $Recv = ''
$Recv = TCPSend($Connect,"GET /index.php HTTP/1.1\n85.114.135.24");
WEnd
ToolTip($Recv)
Sleep(2000)
ToolTip("")
TCPCloseSocket($Connect)
TCPShutdown()
Jeoch bekomme ich irgendwie nur "38" zurück jedoch sollte ich das hier ca bekommen:
Spoiler anzeigen
HTTP/1.1 200 OK
Server: Apache/1.3.29 (Unix) PHP/4.3.4
Content-Length: (Größe von infotext.html in Byte)
Content-Language: de (nach ISO 639 und ISO 3166)
Content-Type: text/html
Connection: close
(Inhalt von index.php)