cURL / Mailing Lists / curl-library / Single Mail

curl-library

get response from the server

From: Oleg Covic <olegc80_at_yahoo.com>
Date: Tue, 12 Feb 2008 08:35:41 -0800 (PST)

I use libcurl.net into my appliction.

I want to sent next command

$curl http://subdomain.harvestapp.com/daily -H 'Accept: application/xml' \

  -H 'Content-Type: application/xml' -u user_at_email.com:password

How can i get response from sever using libcurl.net?

Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);

 string mycredential = "my_at_email.com:pass";
 Easy easy = new Easy();
 easy.SetOpt(CURLoption.CURLOPT_URL, "https://subdomen.harvestapp.com/daily");
                easy.SetOpt(CURLoption.CURLOPT_USERPWD, EncodeTo64(mycredential));
                easy.SetOpt(CURLoption.CURLOPT_HTTPHEADER, "'Accept: application/xml' -H'Content-Type:application/xml' -u my_at_email.com:pass");
easy.Perform();

       
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Received on 2008-02-12