Re: httpS post fail at tango

2014-06-29 Thread Kapps via Digitalmars-d-learn
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

Re: httpS post fail at tango

2014-06-26 Thread JJDuck via Digitalmars-d-learn
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

httpS post fail at tango

2014-06-26 Thread JJDuck via Digitalmars-d-learn
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"))