Re: How to POST data with net.curl

2015-04-02 Thread Pierre Krafft via Digitalmars-d-learn
On Thursday, 2 April 2015 at 07:45:16 UTC, Suliman wrote: I have next request, that work fine with curl: curl -X POST -F upload=@wgs84_latlon.zip http://ogre.adc4gis.com/convert I wrote next code: void main() { auto binfile = cast(ubyte[]) read(`D:\Apps\curl\wgs84_latlon.zip`);

How to POST data with net.curl

2015-04-02 Thread Suliman via Digitalmars-d-learn
I have next request, that work fine with curl: curl -X POST -F upload=@wgs84_latlon.zip http://ogre.adc4gis.com/convert I wrote next code: void main() { auto binfile = cast(ubyte[]) read(`D:\Apps\curl\wgs84_latlon.zip`); auto http = HTTP("http://ogre.adc4gis.com/convert";);