Re: curl and proxy

2014-10-06 Thread Sag Academy via Digitalmars-d-learn
On Friday, 3 October 2014 at 10:53:27 UTC, Marc Schütz wrote: On Friday, 3 October 2014 at 04:57:28 UTC, AntonSotov wrote: auto http = HTTP(dlang.org); http.onReceive = (ubyte[] data) { writeln(cast(string) (data)); return data.length; }; http.proxy = 192.168.111.111; http.proxyPort

Re: curl and proxy

2014-10-05 Thread via Digitalmars-d-learn
On Saturday, 4 October 2014 at 21:59:43 UTC, notna wrote: Cool,thanks. Btw., there could be more special chars to encode...replace beside :... like / @ and so on... see also http://www.cyberciti.biz/faq/unix-linux-export-variable-http_proxy-with-special-characters/ for the background Does

Re: curl and proxy

2014-10-04 Thread notna via Digitalmars-d-learn
Cool,thanks. Btw., there could be more special chars to encode...replace beside :... like / @ and so on... see also http://www.cyberciti.biz/faq/unix-linux-export-variable-http_proxy-with-special-characters/ for the background Regards notna On Friday, 3 October 2014 at 11:13:11 UTC, Marc

Re: curl and proxy

2014-10-03 Thread via Digitalmars-d-learn
On Friday, 3 October 2014 at 04:57:28 UTC, AntonSotov wrote: auto http = HTTP(dlang.org); http.onReceive = (ubyte[] data) { writeln(cast(string) (data)); return data.length; }; http.proxy = 192.168.111.111; http.proxyPort = 1788; WHAT HERE ? http.perform();

Re: curl and proxy

2014-10-03 Thread via Digitalmars-d-learn
On Friday, 3 October 2014 at 10:53:27 UTC, Marc Schütz wrote: On Friday, 3 October 2014 at 04:57:28 UTC, AntonSotov wrote: auto http = HTTP(dlang.org); http.onReceive = (ubyte[] data) { writeln(cast(string) (data)); return data.length; }; http.proxy = 192.168.111.111; http.proxyPort

Re: curl and proxy

2014-10-03 Thread Daniel Kozak via Digitalmars-d-learn
On Friday, 3 October 2014 at 11:13:11 UTC, Marc Schütz wrote: On Friday, 3 October 2014 at 10:53:27 UTC, Marc Schütz wrote: On Friday, 3 October 2014 at 04:57:28 UTC, AntonSotov wrote: auto http = HTTP(dlang.org); http.onReceive = (ubyte[] data) { writeln(cast(string) (data)); return