Dears!
I would like to solve the my problem which is the following:
I have an url:
http://example.net/x.html - I have to post there a variable=value - and the answer is an jpeg image, depending on the value. I works correctly with wget, but I would like to use the synapse http units, but I tried, and read about it, but I think my knowledge is too little for it.
But I can downloaded it the image without post:
HTTP := THTTPSend.Create;
try
HTTP.HTTPMethod('POST', '
http://example.net/x.html'); Memo1.Lines.Assign(HTTP.Headers);
Memo2.Lines.LoadFromStream(HTTP.Document);
http.Document.SaveToFile('c:\file.jpg');
finally
HTTP.Free;
end;
It works. Please help me about it, how can I solve it with the mentioned post.