On Thursday, 26 June 2014 at 17:07:30 UTC, JJDuck wrote:
On Thursday, 26 June 2014 at 16:33:57 UTC, JJDuck wrote:
I tried to use phobos , but there is no such function exists
for posting to https too
With Phobos, you can use
http://dlang.org/phobos/std_net_curl.html#post. Depending on t
On Thursday, 26 June 2014 at 16:33:57 UTC, JJDuck wrote:
I tried to use phobos , but there is no such function exists for
posting to https too
I use Tango's example from
http://www.dsource.org/projects/tango/docs/stable/
// open a web-page for posting (see HttpGet for simple reading)
auto post = new HttpPost ("http://yourhost/yourpath";);
// send, retrieve and display response
Cout (cast(char[]) post.write("posted data", "text/plain"))