Ched
2018-10-31 22:43:01 UTC
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'
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-
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'
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-