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)