user504363
user504363

Reputation: 551

libcurl.dll problem with curl and c# .NET

I Need to develpe application for getting http website page

I found this tutorial for using curl in .Net

http://thedotnetframework.blogspot.com/2008/06/lets-talk-about-http-protocol-and-http.html

I downloaded the curl dll files and add reference (LibCurlNet.dll) to my project

and added the class in my project

but when I run my project, I have error message at line

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

the error message says

Unable to load DLL 'libcurl.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

it seems that ibcurl.dll has a problem

note : I can not add (ibcurl.dll) as reference in my project

please help ;

Upvotes: 2

Views: 5797

Answers (2)

Peter Kelly
Peter Kelly

Reputation: 14391

The error you are seeing is that you need that file (and LibCurlShim.dll) present in your build directory (e.g. bin\debug) or wherever your exe is running from. There is no problem with the file - you just cannot add it as a reference in the usual way in Visual Studio.

You could right-click on Project Explorer and add Existing Files and select libcurl.dll and LibCurlShim.dll. Then in Solution Explorer, on the Properties of those two files make sure you set the Copy To Output Directory to something like Copy Always or Only If Newer

enter image description here

Upvotes: 1

SLaks
SLaks

Reputation: 887305

You're looking for the built-in WebClient class.
You don't need any third-party libraries.

Upvotes: 2

Related Questions