libcurl

Using Pycurl in Pycharm

此生再无相见时 提交于 2019-12-12 14:05:12
问题 I'm trying to run a script that begins: from pycurl import * However, this throws the error: Traceback (most recent call last): File "/Users/adamg/PycharmProjects/untitled/UrlToText.py", line 1, in <module> from pycurl import * ImportError: dlopen(/Users/adamg/anaconda/lib/python2.7/site-packages/pycurl.so, 2): Library not loaded: libcurl.4.dylib Referenced from: /Users/adamg/anaconda/lib/python2.7/site-packages/pycurl.so Reason: Incompatible library version: pycurl.so requires version 8.0.0

Cannot install pycurl on Mac OS X - get errors 1 and 2

纵然是瞬间 提交于 2019-12-12 10:48:03
问题 I am attempting to install pycurl-7.19.0 on my Mac OSX 10.8.4. The error I get when compiling: py setup.py install The results: Using curl-config (libcurl 7.24.0) running install running build running build_py running build_ext building 'pycurl' extension clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict- aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes

SMTP mail using libcurl

余生颓废 提交于 2019-12-12 09:13:24
问题 I compiled the c example the ships with libcurl. The source file is smtp-tls.c Tried to use it to send mail through gmail and this is the response that I got About to connect() to smtp.gmail.com port 465 (#0) Trying 74.125.115.109... * connected Server auth using Basic with user 'xxxxxxx@gmail.com' GET / HTTP/1.1 Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Host: smtp.gmail.com:465 Accept: / Empty reply from server Connection #0 to host smtp.gmail.com left intact Server

Download is not resuming using Curl C API

青春壹個敷衍的年華 提交于 2019-12-12 08:16:58
问题 I am trying to resume a download that has failed due to internet failure. The function I am using to check the success of a curl download is: curl_multi_info_read This function returns the proper error code ( CURLE_COULDNT_CONNECT ) when it is called the first time when internet has lost. If I try to call it again, it returns NULL pointer which means no messages. Actually, I am using the return error code to check whether internet connection is present or not. This is troubling me as it doesn

Update cURL in wamp

只愿长相守 提交于 2019-12-12 06:12:25
问题 Can I get more info on upgrading the cURL in the WAMP server. I have seen http://stackoverflow.com/questions/20323017/update-curl-in-wampserver but can some one give more explanation. I have cURL 7.36.0 but need 7.41 for TWILIO. which cURL should I download? How to update the cURL 回答1: Step by Step Step 1 Download for 32-bit: http://windows.php.net/downloads/releases/php-5.6.7-Win32-VC11-x86.zip Download for 64-bit: http://windows.php.net/downloads/releases/php-5.6.7-Win32-VC11-x64.zip Step 2

Using Libcurl to authenticate ntlm proxy without pass

旧街凉风 提交于 2019-12-12 06:03:32
问题 i'm testing some network simple process to understand better and know how to work with NTLM. Following this (ntlm-proxy-without-password) Q&A i found hot to uthenticate my transaction via ntml using the log information of the current user. The command is this: curl.exe -U : --proxy-ntlm --proxy myproxy.com:8080 http://www.google.com Know i have to do the same thing using libcurl since i need to achieve that result into the application i'm developing. There is a way to do this? Following this

Mime message with attachment turns as empty spam using libcurl

僤鯓⒐⒋嵵緔 提交于 2019-12-12 05:37:26
问题 I'm trying to write a small smtp client in c++ using libcurl. I managed to send simple text email quite easily, but I'm failing when it comes to attachment... For some weird reason, with my current implementation, some messages are correctly sent and received like this one http://hastebin.com/cifetowiya.scala whereas others are constantly failing and transformed into an empty message, like this one http://hastebin.com/mafemufaxu.go I spent some time looking around but I can't find any reason

curl req1 and rea2 same curl handle for CURLOPT_CONNECTTIMEOUT + CURLOPT_TIMEOUT issue …

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 05:08:31
问题 curll_handle = Curl init() curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 20 ) curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30); Request1:(curll_handle) Curl_easy_perform(curll_handle) For connection = 20 secs Chal response request = 30 secs request2:same handle used as above curl_slist_append(headers, "Connection: Close"); Curl_easy_perform(curll_handle) Questions: Request 1: will it use both timeouts(connection and response timeouts) for curl perform? what is the total time will take? as per my

void* to FILE*… is that possible?

删除回忆录丶 提交于 2019-12-12 04:59:38
问题 I'm a complete newbie to all this stuff, and I'm developing a plugin. I need to upload a file using libcurl. The problem is that that file is not on the disk, pointer on it's content is passed to my plugin. So my question is that to upload a file I need FILE* var, but I'm having void*. What should I do? Thank you in advance! 回答1: You can perform an upload using a read callback instead of providing a FILE * , as specified in this example. In the callback then you can copy into the given buffer

Unable to connect to Cloudfront from MacOSX client

放肆的年华 提交于 2019-12-12 04:49:30
问题 My multi-platform client, written in C++ and built on cURL , should download a file from Cloudfront. On Windows, the download works fine with libcurl 7.40.0 and OpenSSL 1.0.2c . On MacOSX: the file served via "direct" Amazon AWS link is correctly downloaded; the file served via Cloudfront link cannot be downloaded: CURL error after the call is set to CURLE_SSL_CONNECT_ERROR , and debug informations show that the protocol breaks during SSL handshake. The file is correctly downloaded also via