GET /filename.ext?IP=1.2.3.4 HTTP/1.1
no body, no other lines.. only first line of http requestDo you mean first line of the response or first line of the request ???
no body, no other lines.. only first line of http requestDo you mean first line of the response or first line of the request ???
This is for the first line from the response:
uses httpsend; //... var I: Integer; HTTP: THTTPSend; begin HTTP := THTTPSend.Create; try if HTTP.HTTPMethod('HEAD', your_url) then if HTTP.Headers.Count > 0 then Showmessage(HTTP.Headers.Strings[0]); finally HTTP.Free; end;
GET /filename.ext?IP=1.2.3.4 HTTP/1.1
Host: 5.6.7.8:5222
User-Agent: blablabla
Accept: */*
Connection: Keep-Alive
get:=foor.bar.getheaders[0]; // GET /filename.ext?IP=1.2.3.4 HTTP/1.1and listen next request
it's client side.. i need a server side (i want see clients requests)Ah, ok, I missed that (server) part.
client want download something from my server, and send request