Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How ro respon HTTP Request by Winsock

Status
Not open for further replies.

sudiar

Programmer
Jul 13, 2021
2
MD
My application can read http requests from the browser, but I'm having trouble responding to them through my application. I've tried using the senddata method, but in the browser display "localhost refuses to connect". What is the correct senddata header? May senddata coding is:

Code:
cl=CHR(13)
iteks="HTTP/1.1 200 OK"+cl+;
"Date: Sat, 05 Mar 2022 04:30:38 GMT"+cl+;
"Server: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.11"+cl+;
"X-Powered-By: xxx"+cl+;
"Content-Length: 15"+cl+;
"Keep-Alive: timeout=5, max=100"+cl+;
"Connection: Keep-Alive"+cl+;
"Content-Type: text/html; charset=UTF-8"+cl+cl
thisform.winsock1.oBJECT.SendData(iteks)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top