POST HTTP lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- nsduartept · 2014-06-23 14:48 Hi, i need to send to a ENDPOINT some date in POST HTTP Can you help me? can i use lnet? Thanks Request: POST /adapter/upload HTTP/1.1 User-Agent: curl/7.30.0 Host: mypost.local Accept: */* Content-Length: 492 Content-Type: application/x-www-form-urlencoded time,id,qt 2013-05-14 02:30:00 GMT+01:00,642,0.2 2013-05-14 02:30:00 GMT+01:00,643,0.1 2013-05-14 02:30:00 GMT+01:00,645,0.75 2013-05-14 02:30:00 GMT+01:00,646,1.5 = Response: HTTP/1.1 200 OK Date: Mon, 15 Jul 2013 21:03:23 GMT Content-Length: 0 Server: Jetty(8.1.2.v20120308) ---------------------------------------------------------------------- Leledumbo · 2014-06-24 09:43 I've forgotten how to use lnet (or even synapse, but a quick look over the examples or docs should restore that). With TFPHTTPClient, you can do this: http://svn.freepascal.org/svn/fpc/trunk/packages/fcl- web/examples/httpclient/httppost.pp