Questions tagged [libcurl.net]

Multiprotocol file transfer library for .Net

.Net implementation of

12 questions
9
votes
2 answers

Getting ambiguous reference error in C# app due to cref reference in comments?

This is a new problem I've never seen before. It's occurring in an open source wrapper for LibCURL.NET: http://sourceforge.net/projects/libcurl-net/ I am getting an ambiguous reference "warning as error", but the odd part is that it's happening due…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
2
votes
0 answers

libcurl.NET cannot resolve internal host when running in Visual Studio 2012 debugger

In the following C# program, CURL cannot resolve a local server inside the company. It works: for external URLs (e.g. http://www.google.com) when using WebRequest instead of CURL (first part in the code) This is the program: using…
Roland
  • 21
  • 4
2
votes
1 answer

Use LibCurl .net to download a file

How do I simply download a file with libCurl .net? I can't use WebClient. I tried looking for a good example but cant find anything. Thanks!
0xSingularity
  • 577
  • 6
  • 36
2
votes
1 answer

400 Bad Request in Curl

For several days, I have been trying to post to a server. But I get a bad request error which is: HTTP/1.1 400 Bad Request Server: cloudflare-nginx Date: Sat, 13 Oct 2012 14:25:32 GMT Content-Type: text/html Content-Length: 522 Connection:…
unbalanced
  • 1,192
  • 5
  • 19
  • 44
1
vote
1 answer

C# how to download a file using libcurlnet

Can someone show me the correct way to download a file given a url using libcurlnet FileStream fs = new FileStream("something.mp3", FileMode.Create); WriteData wd = OnWriteData; easy.SetOpt(CURLoption.CURLOPT_URL, downloadFileUrl);…
Eminem
  • 7,206
  • 15
  • 53
  • 95
1
vote
0 answers

Unable to upload file having Japanese characters in filename using CURL command

I want to upload a file. If filename is belong to ASCII charset then it is uploaded successfully, but when filename has Japanese characters in it, then it is not able to upload. Command used: curl -X POST -u $username:$pass -F…
0
votes
2 answers

how to clear a specific header in libcurl

CURL *handle; struct curl_slist *slist=NULL; slist = curl_slist_append(slist, "X-libcurl: coolness"); slist = curl_slist_append(slist, "Authorization: Bearer retrffhj"); curl_slist_free_all(slist); /* clears all header list */ How can I clear the…
0
votes
2 answers

Can libcurl.net be used to post a new page to confluence?

I'm just getting started using the REST API to create pages. I'm trying to configure a basic example and I thought of using libcurl.net to do it. Does anyone see any reason why that wouldn't work? UPDATE: Here is what I have so far adapted from the…
mreinsmith
  • 154
  • 3
  • 14
0
votes
1 answer

How to append HTML content into a string in CurlSharp?

I'm using CurlSharp library to GET HTTP. This is the code I got at the moment: static void Main(string[] args) { Curl.GlobalInit(CurlInitFlag.All); using (var easy = new CurlEasy()) { easy.Url =…
LeMoussel
  • 5,290
  • 12
  • 69
  • 122
0
votes
2 answers

LibCurlNet support SMTP Protocol?

i'm working on a aplication for sending emails. I started working with libcurlnet library, and this is the code i got at the moment: Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL); Easy easyHandle=new…
0
votes
1 answer

Passing multiple request headers to libcurl.net

I have recently started using libcurl.net with one of my projects as a replacement to the HttpWebRequest and HttpWebResponse classes. The reason I chose to use libcurl.net instead of the managed classes is that libcurl.net mimics the behavior of…
Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85
0
votes
2 answers

How to read GZip content sent in a http response

I have been trying for over a week now to be able to read the gzipped content sent in an Http Respose. OK, let me be more specific - the web server sends a response which has the Content-Disposition header and the attachment attribute, like…
JaySO
  • 1
  • 3