Habe mich nochmal auf die Suche gemacht, diesen Artikel von Narses gefunden
www.delphi-library.d...n+seit+D7_64438.html
und den TClientSocket reaktiviert um es mit dem nochmal zu probieren...
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28:
| edhost.text:de.wikipedia.org eddoc.text:/wiki/Hauptseite
procedure .btsendClick(Sender: TObject); begin ClientSocket.Port := 80; ClientSocket.Host := edhost.text; ClientSocket.Open; end;
procedure .ClientSocketConnect(Sender: TObject; Socket: TCustomWinSocket); begin end;
procedure .ClientSocketRead(Sender: TObject; Socket: TCustomWinSocket); begin mequellcode.Lines.Add(ClientSocket.Socket.ReceiveText); end; |
Antwort ist:
HTTP/1.0 400 Bad Request
Server: squid/2.6.STABLE18
Date: Thu, 27 Mar 2008 19:30:09 GMT
Content-Type: text/html
Content-Length: 50107
Expires: Thu, 27 Mar 2008 19:30:09 GMT
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from knsq2.knams.wikimedia.org
X-Cache-Lookup: NONE from knsq2.knams.wikimedia.org:80
Via: 1.0 knsq2.knams.wikimedia.org:80 (squid/2.6.STABLE18)
Proxy-Connection: close
und eine Multilingual_error_messages
meta.wikimedia.org/w...ngual_error_messages
Aber warum?