libcurl

How (i.e. what tool to use) to monitior headers sent by Curl (Cookie problem)

I am using Curl (libcurl) in a C++ aplication, and am unable to send cookies (I think). I have Fiddler, TamperData and LiveHTTP Headers installed, but they are only useful for viewing browser traffic, and are (it would seem) unable of monitoring general network traffic on a machine, so when I run my machine, I cant see the header infor...

C libcurl get output into a string

hi there i want to get into a var the result of this curl funcion how can i do? thanks! #include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se"); res = curl_easy_perform(curl); /* always cleanup */ ...

Having Issues with Curb gem on Mac Snow Leopard

This has consumed hours of my time. in the console i run: require 'curb' i get the error: LoadError: dlopen(/usr/local/lib/ruby/gems/1.8/gems/taf2-curb-0.5.4.0/lib/curb_core.bundle, 9): no suitable image found. Did find: /usr/local/lib/ruby/gems/1.8/gems/taf2-curb-0.5.4.0/lib/curb_core.bundle: mach-o, but wrong architecture - /usr/lo...

libcurl HTTP request to save respond into variable - c++

I'm trying to save the returned data from HTTP request into a variable. The code below will automatically print the respond of the request, but I need it to save the respond to a char or string. int main(void) { char * result; CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { ...

pycurl and lot of callback functions

I have big URL list, which I have to download in parallel and check one of headers that is returned with each response. I can use CurlMulti for parallelization. I can use /dev/null as fb, because I am not interested in body, only headers. But how can I check each header? To receive header, I must set HEADERFUNCTION callback. I get tha...

Setting up cURL library for MSVS

I'm trying to write a simple curl program to retrieve the web page in VC++ 8.0. #include <stdio.h> #include <curl.h> int main(void) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se"); res = curl_easy_perform(curl); /* always cleanup */ ...

std string problem with libcurl - c++

I'm pretty new to c++ and I'm using libcurl to make an http request and get back a string with the respond's content. size_t write_to_string(void *ptr, size_t size, size_t count, void *stream) { ((std::string*)stream)->append((char*)ptr, 0, size*count); return size*count; } int main(void) { CURL *curl; CURLcode res; ...

Linking problems using libcurl with Visual C++ 2005: "unresolved external symbol __imp__curl_easy_setopt"

Hi, I am planning to use libcurl in my project. I had downloaded the library source,built and integrated it in a small POC application. I am able to build and run the application without any issues with the generated libcurl.dll and libcurl_imp.lib files. Now when I integrate the same library in my project I am getting linker errors. ...

VC++ libcurl .lib size

I'm having an issue with the size of the .lib when I compile libcurl. It's 1.6 MB and the sample program they have is alround 300 KB. I downloaded the latest version (curl-7.20.0) and opened the project file from the lib directory in visual studio 2008. In the project properties I set /MT and compiled a release build. I even tried addi...

using libcurl to check if a file exists on a SFTP site

I'm using C++ with libcurl to do SFTP/FTPS transfers. Before uploading a file, I need to check if the file exists without actually downloading it. If the file doesn't exist, I run into the following problems: //set up curlhandle for the public/private keys and whatever else first. curl_easy_setopt(CurlHandle, CURLOPT_URL, "sftp://user@...

libcurl in C# and .NET

Hello(здравствуйте) I’m a PHP developer, my current job is maintaining a few web sites. So I have some free time and thoughts about developing some GUI applications using the c# language and .NET platform. Implementation of this applications requires libcURL functionality. Are there any .net classes or third-party libs in c#, that can ...

Is it possible to override the HTTP functions in wxHtmlWindow?

I would like wxHtmlWindow to use libcurl instead of the internal wxHTTP class. Is there an easy way to do this? If not, can I at least change the useragent wxHtmlWindow sends when it accesses pages? ...

libcurl .NET does not want to work on Win64

I wrote multi-threaded FTP uploader on C#.NET using libcurl.NET. Everything works fine on my machine, but when I give application (exe + libcurl.dll + 2 libcurl C# binding DLLs) to my friend who is running Win64, application crashes. After adding exception catcher to whole Main() function, I was able to get readable error message: "An ...

cURL - put output into variable?

Hi, I'm currently using this C code: CURL *curl; CURLcode res; curl = curl_easy_init(); if (curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://my-domain.org/"); res = curl_easy_perform(curl); curl_easy_cleanup(curl); } It prints the output on the console. How can I get the same output, but read it into, say, a string? ...

Using the sftp protocol with libcurl -- How do I list the contents of a directory?

Hi guys, I have a little doubt. I need to get a list of the files inside a specific directory on a SFTP server. I will use CUROPT_DIRLISTONLY in order to get just the names, but I'm not sure how to get them. This is the peace of code I have by now: string baseUrl(serverAddr + "/" + __destDir); curl_easy_setopt(anEasyHandle, CURLO...

What directory does CURL to be saved to in Xampp?

Hello, I am trying to get started with CURL. I am running windows vista and have xampp installed. I downloaded the curl zip and extracted this but the curl executable when run just does a quick flash of a command promp then disappears. where am I going wrong on this curl install? ...

DLL dependant on curllib.dll - How can I fix this?

Hi there, I'm new to developing in C++. I've developed a dll where I'm using curllib to make HTTP requests. When running the dll via depend.exe it notifies me that my dll now depends on the curllib.dll. This simply doesn't work for me. My dll is set as a static library not shared and will be distributed on its own. I cannot rely on a ...

C++: Need to make an HTTP request from a dll - where do I start?

Hi there, I've tried using curllib, but find my dll becomes dependent on curllib.dll. Is there another method I can investigate and use? I simply want to make a request to a web page. My dll has to be independant so it can be distributed on its own. Thanks ...

Compiling and linking libcurl to create a stand alone dll

Possible Duplicate: DLL dependant on curllib.dll - How can I fix this? Hi, I've managed to compile a dll with the necessary linked libraries (*.lib) and with CURL_STATICLIB set in the preprocessor section among other settings. I'm using "libcurl-7.19.3-win32-ssl-msvc.zip" package and compiling with VS 2008 express. This has b...

How can I CURL POST a file using file pointer in C++

I have a file pointer, such as the following: FILE* f = tmpfile() How do I use libcurl to do a HTTP POST to a URL as a field named F1? I tried reading the file contents into a char* array but and used the following to upload: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <curl/curl.h> #include <curl/types.h> #...