[fpc-pascal] fphttpclient.post

Ched charles.edouard.des.vastes.vignes at gmail.com
Wed Oct 31 23:43:01 CET 2018


Hello All,

I'm using fphttpclient.simpleget to make querries to webserver. It's very very simple to use this 
function ! "Du pur bonheur".

As some data which travel the world encoded in clear in the url of the get are sometime private 
(connecting password for example), I'd like to use the post method which crypts the data when using https.

There is a fphttpclient.simplepost method with various possibilities for the call, but it dosen't accept 
something like fphttpclient.simplepost(the-url, an-ansistring). It would also be very nice to have a 
function which returns also the result in an ansistring as fphttpclient.simplepost(myurl) do.

Yes, you guessed right: I'm not a specialist of networking in Freepascal and I don't understand why one 
have to manage TStrings and streams as the data of the request are probably very simple to build in an 
ansistring.

Bad- or good idea ? And how difficult would it be to build ?

Cheers, Ched'


More information about the fpc-pascal mailing list