Re: Using std.net.curl

2020-02-29 Thread David Anderson via Digitalmars-d-learn
On Saturday, 29 February 2020 at 07:35:10 UTC, Boris Carvajal 
wrote:
On Saturday, 29 February 2020 at 03:53:37 UTC, David Anderson 
wrote:


I want to capture that text in a variable, but the upload 
function returns void. How can I get the text returned by the 
web server to be stored in a variable?


import std;

auto updata = read("inputfile");
auto dldata = put("https://postman-echo.com/put";, updata);
writeln(dldata);


Awesome, thank you! That's exactly what I needed.


Re: Using std.net.curl

2020-02-28 Thread Boris Carvajal via Digitalmars-d-learn
On Saturday, 29 February 2020 at 03:53:37 UTC, David Anderson 
wrote:


I want to capture that text in a variable, but the upload 
function returns void. How can I get the text returned by the 
web server to be stored in a variable?


import std;

auto updata = read("inputfile");
auto dldata = put("https://postman-echo.com/put";, updata);
writeln(dldata);


Using std.net.curl

2020-02-28 Thread David Anderson via Digitalmars-d-learn
I'm working with std.net.curl. Using curl on the command line I 
can do this:


curl -T file.txt http://localhost:9998/tika

and it returns text as a result.

When I attempt to do the same thing in D code as follows:

import std.net.curl;
upload("file.txt", "http://localhost:9998/tika";);

the text is written to standard out.

I want to capture that text in a variable, but the upload 
function returns void. How can I get the text returned by the web 
server to be stored in a variable?




How to access https web page using std.net.curl?

2016-11-20 Thread acbbad via Digitalmars-d-learn
I had tried std.net.curl.get (). However, the following error 
occurs


--
std.net.curl.CurlException@std\net\curl.d(4097): Peer certificate 
cannot be authenticated with given CA certificates on handle 
2175BB8

--

Guess it seems to be a problem with certificates. Can I get the 
html code of the https site using std.net.curl?


Thank you.


Re: Specifying content-type for a POST request using std.net.curl

2016-08-09 Thread Joseph Rushton Wakeling via Digitalmars-d-learn

On Tuesday, 9 August 2016 at 14:30:21 UTC, Seb wrote:

There is also

https://github.com/ikod/dlang-requests

Which I find in general more intuitive to use ;-)


Interesting, I'd not come across that before.  Thanks -- I'll 
give it a glance some time ...


Re: Specifying content-type for a POST request using std.net.curl

2016-08-09 Thread Joseph Rushton Wakeling via Digitalmars-d-learn

On Tuesday, 9 August 2016 at 14:21:09 UTC, ketmar wrote:

http://dpldocs.info/experimental-docs/std.net.curl.HTTP.setPostData.html

https://dlang.org/phobos/std_net_curl.html#.HTTP.setPostData

reading documentation rox!


Yea, mea culpa.  I had actually glanced at that but was asking on 
the assumption that I might have misunderstood something about 
the simpler functions -- it was a bit odd that (for example) a 
`post` call whose input data was `void[]` or `ubyte[]` would 
still be treated as text content-type.


In any case, I now have a working solution using 
HTTP.setPostData, so all's well ;-)  Thanks!


Re: Specifying content-type for a POST request using std.net.curl

2016-08-09 Thread Seb via Digitalmars-d-learn
On Tuesday, 9 August 2016 at 14:07:48 UTC, Joseph Rushton 
Wakeling wrote:

Hello all,

I'm currently writing a little client app whose job is to make 
a POST request to a vibe.d webserver and output the response.  
However, vibe.d is picky about the content-type of the request 
body, and so far as I can see there is no way to specify this 
via the `std.net.curl.post` API.


So far as I can see from the vibe.d log output, `post` is using 
the `text/plain` content type, to which vibe.d objects 
(rightly) because the content is not UTF8.  It's a little 
bizarre that `text/plain` is chosen, because the input data is 
`void[]` or `ubyte[]` data.


Can anyone advise (if it's possible at all) how to specify the 
content type for the post request body using std.net.curl (or 
an alternative)?


Thanks & best wishes,

-- Joe


There is also

https://github.com/ikod/dlang-requests

Which I find in general more intuitive to use ;-)



Re: Specifying content-type for a POST request using std.net.curl

2016-08-09 Thread ketmar via Digitalmars-d-learn

http://dpldocs.info/experimental-docs/std.net.curl.HTTP.setPostData.html

https://dlang.org/phobos/std_net_curl.html#.HTTP.setPostData

reading documentation rox!


Specifying content-type for a POST request using std.net.curl

2016-08-09 Thread Joseph Rushton Wakeling via Digitalmars-d-learn

Hello all,

I'm currently writing a little client app whose job is to make a 
POST request to a vibe.d webserver and output the response.  
However, vibe.d is picky about the content-type of the request 
body, and so far as I can see there is no way to specify this via 
the `std.net.curl.post` API.


So far as I can see from the vibe.d log output, `post` is using 
the `text/plain` content type, to which vibe.d objects (rightly) 
because the content is not UTF8.  It's a little bizarre that 
`text/plain` is chosen, because the input data is `void[]` or 
`ubyte[]` data.


Can anyone advise (if it's possible at all) how to specify the 
content type for the post request body using std.net.curl (or an 
alternative)?


Thanks & best wishes,

-- Joe


Re: Using std.net.curl to stream data

2015-01-28 Thread Chris Williams via Digitalmars-d-learn

On Wednesday, 28 January 2015 at 14:18:38 UTC, Trollgeir wrote:
I'm having some trouble trying to stream data to my plot.ly 
graph:

https://plot.ly/62/~Trollgeir/

The API:  https://plot.ly/streaming/

I am able to post messages that get recorded into the stream 
live, although right after curl uploads it, it just seems to 
wait for a response it's not getting, and eventually timeouts. 
Does anyone have any advice?


auto client = HTTP("stream.plot.ly");
client.addRequestHeader("plotly-streamtoken","e8bg6omat6");
client.verbose = true;

string msg = "{ \"x\": 500, \"y\": 500 } \n";
client.postData(msg);
client.perform; 


You have to define a handler for HTTP.onReceive before calling 
HTTP.perform. It will receive ubyte arrays for each packet that 
comes in. For most purposes, you just copy that onto the end of a 
string in an external scope. But if you're streaming content, 
you'll need to do something more fancy.


Using std.net.curl to stream data

2015-01-28 Thread Trollgeir via Digitalmars-d-learn

I'm having some trouble trying to stream data to my plot.ly graph:
https://plot.ly/62/~Trollgeir/

The API:  https://plot.ly/streaming/

I am able to post messages that get recorded into the stream 
live, although right after curl uploads it, it just seems to wait 
for a response it's not getting, and eventually timeouts. Does 
anyone have any advice?


auto client = HTTP("stream.plot.ly");
client.addRequestHeader("plotly-streamtoken","e8bg6omat6");
client.verbose = true;

string msg = "{ \"x\": 500, \"y\": 500 } \n";
client.postData(msg);
client.perform; 


Re: Using std.net.curl

2014-04-08 Thread Volodymyr Kvyt

On Wednesday, 4 July 2012 at 17:19:02 UTC, Brad Anderson wrote:


I just ended up specifying the link command manually (see my 
answer on the
Stack Overflow).  It's ugly but it works.  Leandro discusses a 
solution
here:  
It hasn't

been implemented yet though.

Regards,
Brad Anderson


I have the same problem as in the top. When i add -L-lphobos2 
-L-lcurl to the compiler options i get this error:
Fatal Error while loading 
'/usr/lib/x86_64-linux-gnu/libphobos2.so.0.65':

The module 'std.regex' is already defined in './main'.
Segmentation fault (core dumped)


Re: Using std.net.curl

2012-07-07 Thread Gary Willoughby

Yeah invoking the linker manually works fine.

To save me from that each time i've actually added '-L-lphobos2' 
to the end of 'DFLAGS' in '/etc/dmd.conf' so phobos is always 
before curl in the linker argument list. When the program is 
compiled '-L-lphobos2' appears twice in the args but that's no 
big deal (i hope :p ).


Thanks.


Re: Using std.net.curl

2012-07-06 Thread 1100110
Specifying them in the oposite order one the command line worked for me a  
few days ago.


I swear.



On Sun, 01 Jul 2012 11:59:59 -0500, Gary Willoughby   
wrote:


I'm using the built-in curl library on Linux i'm getting linker errors.  
I've installed libcurl4-openssl-dev and it works fine as i can  
successfully compile a sample program. However when using the D lib i  
get these errors:


[quote]
:!rdmd api_test.d
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl.o):  
In function `_D3std3net4curl4Curl19_sharedStaticCtor28FZv':
std/net/curl.d:(.text._D3std3net4curl4Curl19_sharedStaticCtor28FZv+0xf):  
undefined reference to `curl_global_init'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl.o):  
In function `_D3std3net4curl4Curl19_sharedStaticDtor29FZv':
std/net/curl.d:(.text._D3std3net4curl4Curl19_sharedStaticDtor29FZv+0x5):  
undefined reference to `curl_global_cleanup'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fa_140.o):  
In function `_D3std3net4curl4HTTP4Impl6__dtorMFZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP4Impl6__dtorMFZv+0x19):  
undefined reference to `curl_slist_free_all'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fa_140.o):  
In function `_D3std3net4curl4HTTP3dupMFZS3std3net4curl4HTTP':
std/net/curl.d:(.text._D3std3net4curl4HTTP3dupMFZS3std3net4curl4HTTP+0x6b):  
undefined reference to `curl_slist_append'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fa_140.o):  
In function `_D3std3net4curl4HTTP19clearRequestHeadersMFZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP19clearRequestHeadersMFZv+0x22):  
undefined reference to `curl_slist_free_all'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fa_140.o):  
In function `_D3std3net4curl4HTTP16addRequestHeaderMFAxaAxaZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP16addRequestHeaderMFAxaAxaZv+0x5b):  
undefined reference to `curl_slist_append'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fb_ea.o):  
In function `_D3std3net4curl3FTP4Impl6__dtorMFZv':
std/net/curl.d:(.text._D3std3net4curl3FTP4Impl6__dtorMFZv+0x18):  
undefined reference to `curl_slist_free_all'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fb_ea.o):  
In function `_D3std3net4curl3FTP3dupMFZS3std3net4curl3FTP':
std/net/curl.d:(.text._D3std3net4curl3FTP3dupMFZS3std3net4curl3FTP+0xa6):  
undefined reference to `curl_slist_append'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fb_ea.o):  
In function `_D3std3net4curl3FTP13clearCommandsMFZv':
std/net/curl.d:(.text._D3std3net4curl3FTP13clearCommandsMFZv+0x20):  
undefined reference to `curl_slist_free_all'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fb_ea.o):  
In function `_D3std3net4curl3FTP10addCommandMFAxaZv':
std/net/curl.d:(.text._D3std3net4curl3FTP10addCommandMFAxaZv+0x31):  
undefined reference to `curl_slist_append'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1400_432.o):  
In function `_D3std3net4curl4Curl10initializeMFZv':
std/net/curl.d:(.text._D3std3net4curl4Curl10initializeMFZv+0x42):  
undefined reference to `curl_easy_init'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1401_149.o):  
In function `_D3std3net4curl4Curl3dupMFZS3std3net4curl4Curl':
std/net/curl.d:(.text._D3std3net4curl4Curl3dupMFZS3std3net4curl4Curl+0x28):  
undefined reference to `curl_easy_duphandle'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1405_37c.o):  
In function `_D3std3net4curl4Curl8shutdownMFZv':
std/net/curl.d:(.text._D3std3net4curl4Curl8shutdownMFZv+0x1e): undefined  
reference to `curl_easy_cleanup'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1407_14c.o):  
In function `_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionAxaZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionAxaZv+0x35):  
undefined reference to `curl_easy_setopt'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1408_14c.o):  
In function `_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv+0x2e):  
undefined reference to `curl_easy_setopt'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1409_14c.o):  
In function `_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionPvZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionPvZv+0x2e):  
undefined reference to `curl_easy_setopt'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_140a_207.o):  
In function `_D3std3net4curl4Curl5clearMFE3etc1c4curl10CurlOptionZv':
std/net/curl.d:(.text._D3std3net4curl4Curl5clearMFE3etc1c4curl10CurlOptionZv+0x26):  
undefined 

Re: Using std.net.curl

2012-07-04 Thread Brad Anderson
On Sun, Jul 1, 2012 at 10:59 AM, Gary Willoughby  wrote:

> I'm using the built-in curl library on Linux i'm getting linker errors.
> I've installed libcurl4-openssl-dev and it works fine as i can successfully
> compile a sample program. However when using the D lib i get these errors:
>
> [quote]
> :!rdmd api_test.d
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl.o):
> In function `_D3std3net4curl4Curl19_**sharedStaticCtor28FZv':
> std/net/curl.d:(.text._**D3std3net4curl4Curl19_**sharedStaticCtor28FZv+0xf):
> undefined reference to `curl_global_init'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl.o):
> In function `_D3std3net4curl4Curl19_**sharedStaticDtor29FZv':
> std/net/curl.d:(.text._**D3std3net4curl4Curl19_**sharedStaticDtor29FZv+0x5):
> undefined reference to `curl_global_cleanup'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_13fa_140.o):
> In function `_D3std3net4curl4HTTP4Impl6__**dtorMFZv':
> std/net/curl.d:(.text._**D3std3net4curl4HTTP4Impl6__**dtorMFZv+0x19):
> undefined reference to `curl_slist_free_all'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_13fa_140.o):
> In function `_**D3std3net4curl4HTTP3dupMFZS3st**d3net4curl4HTTP':
> std/net/curl.d:(.text._**D3std3net4curl4HTTP3dupMFZS3st**d3net4curl4HTTP+0x6b):
> undefined reference to `curl_slist_append'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_13fa_140.o):
> In function `_**D3std3net4curl4HTTP19clearRequ**estHeadersMFZv':
> std/net/curl.d:(.text._**D3std3net4curl4HTTP19clearRequ**estHeadersMFZv+0x22):
> undefined reference to `curl_slist_free_all'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_13fa_140.o):
> In function `_**D3std3net4curl4HTTP16addReques**tHeaderMFAxaAxaZv':
> std/net/curl.d:(.text._**D3std3net4curl4HTTP16addReques**tHeaderMFAxaAxaZv+0x5b):
> undefined reference to `curl_slist_append'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_13fb_ea.o):
> In function `_D3std3net4curl3FTP4Impl6__**dtorMFZv':
> std/net/curl.d:(.text._**D3std3net4curl3FTP4Impl6__**dtorMFZv+0x18):
> undefined reference to `curl_slist_free_all'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_13fb_ea.o):
> In function `_**D3std3net4curl3FTP3dupMFZS3std**3net4curl3FTP':
> std/net/curl.d:(.text._**D3std3net4curl3FTP3dupMFZS3std**3net4curl3FTP+0xa6):
> undefined reference to `curl_slist_append'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_13fb_ea.o):
> In function `_**D3std3net4curl3FTP13clearComma**ndsMFZv':
> std/net/curl.d:(.text._**D3std3net4curl3FTP13clearComma**ndsMFZv+0x20):
> undefined reference to `curl_slist_free_all'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_13fb_ea.o):
> In function `_**D3std3net4curl3FTP10addCommand**MFAxaZv':
> std/net/curl.d:(.text._**D3std3net4curl3FTP10addCommand**MFAxaZv+0x31):
> undefined reference to `curl_slist_append'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_1400_432.o):
> In function `_**D3std3net4curl4Curl10initializ**eMFZv':
> std/net/curl.d:(.text._**D3std3net4curl4Curl10initializ**eMFZv+0x42):
> undefined reference to `curl_easy_init'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_1401_149.o):
> In function `_**D3std3net4curl4Curl3dupMFZS3st**d3net4curl4Curl':
> std/net/curl.d:(.text._**D3std3net4curl4Curl3dupMFZS3st**d3net4curl4Curl+0x28):
> undefined reference to `curl_easy_duphandle'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_1405_37c.o):
> In function `_**D3std3net4curl4Curl8shutdownMF**Zv':
> std/net/curl.d:(.text._**D3std3net4curl4Curl8shutdownMF**Zv+0x1e):
> undefined reference to `curl_easy_cleanup'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_1407_14c.o):
> In function `_**D3std3net4curl4Curl3setMFE3etc**1c4curl10CurlOptionAxaZv':
> std/net/curl.d:(.text._**D3std3net4curl4Curl3setMFE3etc**
> 1c4curl10CurlOptionAxaZv+0x35)**: undefined reference to
> `curl_easy_setopt'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_1408_14c.o):
> In function `_**D3std3net4curl4Curl3setMFE3etc**1c4curl10CurlOptionlZv':
> std/net/curl.d:(.text._**D3std3net4curl4Curl3setMFE3etc**1c4curl10CurlOptionlZv+0x2e):
> undefined reference to `curl_easy_setopt'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_1409_14c.o):
> In function `_**D3std3net4curl4Curl3setMFE3etc**1c4curl10CurlOptionPvZv':
> std/net/curl.d:(.text._**D3std3net4curl4Curl3setMFE3etc**1c4curl10CurlOptionPvZv+0x2e):
> undefined reference to `curl_easy_setopt'
> /usr/lib/gcc/x86_64-linux-gnu/**4.6/../../../x86_64-linux-gnu/**libphobos2.a(curl_140a_207.o):
> In function `

Using std.net.curl

2012-07-01 Thread Gary Willoughby
I'm using the built-in curl library on Linux i'm getting linker 
errors. I've installed libcurl4-openssl-dev and it works fine as 
i can successfully compile a sample program. However when using 
the D lib i get these errors:


[quote]
:!rdmd api_test.d
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl.o): 
In function `_D3std3net4curl4Curl19_sharedStaticCtor28FZv':
std/net/curl.d:(.text._D3std3net4curl4Curl19_sharedStaticCtor28FZv+0xf): 
undefined reference to `curl_global_init'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl.o): 
In function `_D3std3net4curl4Curl19_sharedStaticDtor29FZv':
std/net/curl.d:(.text._D3std3net4curl4Curl19_sharedStaticDtor29FZv+0x5): 
undefined reference to `curl_global_cleanup'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fa_140.o): 
In function `_D3std3net4curl4HTTP4Impl6__dtorMFZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP4Impl6__dtorMFZv+0x19): 
undefined reference to `curl_slist_free_all'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fa_140.o): 
In function `_D3std3net4curl4HTTP3dupMFZS3std3net4curl4HTTP':
std/net/curl.d:(.text._D3std3net4curl4HTTP3dupMFZS3std3net4curl4HTTP+0x6b): 
undefined reference to `curl_slist_append'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fa_140.o): 
In function `_D3std3net4curl4HTTP19clearRequestHeadersMFZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP19clearRequestHeadersMFZv+0x22): 
undefined reference to `curl_slist_free_all'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fa_140.o): 
In function `_D3std3net4curl4HTTP16addRequestHeaderMFAxaAxaZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP16addRequestHeaderMFAxaAxaZv+0x5b): 
undefined reference to `curl_slist_append'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fb_ea.o): 
In function `_D3std3net4curl3FTP4Impl6__dtorMFZv':
std/net/curl.d:(.text._D3std3net4curl3FTP4Impl6__dtorMFZv+0x18): 
undefined reference to `curl_slist_free_all'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fb_ea.o): 
In function `_D3std3net4curl3FTP3dupMFZS3std3net4curl3FTP':
std/net/curl.d:(.text._D3std3net4curl3FTP3dupMFZS3std3net4curl3FTP+0xa6): 
undefined reference to `curl_slist_append'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fb_ea.o): 
In function `_D3std3net4curl3FTP13clearCommandsMFZv':
std/net/curl.d:(.text._D3std3net4curl3FTP13clearCommandsMFZv+0x20): 
undefined reference to `curl_slist_free_all'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_13fb_ea.o): 
In function `_D3std3net4curl3FTP10addCommandMFAxaZv':
std/net/curl.d:(.text._D3std3net4curl3FTP10addCommandMFAxaZv+0x31): 
undefined reference to `curl_slist_append'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1400_432.o): 
In function `_D3std3net4curl4Curl10initializeMFZv':
std/net/curl.d:(.text._D3std3net4curl4Curl10initializeMFZv+0x42): 
undefined reference to `curl_easy_init'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1401_149.o): 
In function `_D3std3net4curl4Curl3dupMFZS3std3net4curl4Curl':
std/net/curl.d:(.text._D3std3net4curl4Curl3dupMFZS3std3net4curl4Curl+0x28): 
undefined reference to `curl_easy_duphandle'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1405_37c.o): 
In function `_D3std3net4curl4Curl8shutdownMFZv':
std/net/curl.d:(.text._D3std3net4curl4Curl8shutdownMFZv+0x1e): 
undefined reference to `curl_easy_cleanup'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1407_14c.o): 
In function 
`_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionAxaZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionAxaZv+0x35): 
undefined reference to `curl_easy_setopt'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1408_14c.o): 
In function 
`_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv+0x2e): 
undefined reference to `curl_easy_setopt'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_1409_14c.o): 
In function 
`_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionPvZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionPvZv+0x2e): 
undefined reference to `curl_easy_setopt'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_140a_207.o): 
In function 
`_D3std3net4curl4Curl5clearMFE3etc1c4curl10CurlOptionZv':
std/net/curl.d:(.text._D3std3net4curl4Curl5clearMFE3etc1c4curl10CurlOptionZv+0x26): 
undefined reference to `curl_easy_setopt'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libphobos2.a(curl_140b_2fb.o): 
In function `_D3std3net4curl4Curl7performMFbZi':
std/net/curl.d:(.text._D3std