Questions tagged [pycurl]

PycURL is a Python interface to libcurl.

PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of features.

609 questions
6
votes
1 answer

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

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'…
5
votes
2 answers

Error 'openssl/crypto.h' file not found when installing PycURL on Mac using pip

When installing Python3 packages on macOS X 10.15 Catalina using pip install -r requirements.txt I am getting this error: × Running setup.py install for pycurl did not run successfully. │ exit code: 1 ╰─> [25 lines of output] …
Tony
  • 7,767
  • 2
  • 22
  • 51
5
votes
1 answer

How to halt, kill, stop or close a PycURL request on a stream example given using Twitter Stream

Im currently cURLing the twitter API stream (http://stream.twitter.com/1/statuses/sample.json), so am constantly receiving data. I wish to stop cURLing the stream once i have retrieved X number of objects from it (in the example I give 10 as an…
jonhurlock
  • 1,798
  • 1
  • 18
  • 28
5
votes
2 answers

How to install libcurl with nss backend in aws ec2? (Python 3.6 64bit Amazon Linux)

I have an ec2 instance in AWS running Python3.6 (Amazon Linux/2.8.3) where I need to install pycurl with NSS ssl backend. First I tried it by adding pycurl==7.43.0 --global-option="--with-nss" to my requirement.txt file but I was getting errors…
jaume
  • 163
  • 2
  • 11
5
votes
5 answers

Pycurl is not compiled against Openssl, when I trie to use wfuzz how to solve this problem?

I was testing the tool wfuzz on kali linux, and I'm getting this warning. Warning: Pycurl is not compiled against Openssl. Wfuzz might not work correctly when fuzzing SSL sites. Check Wfuzz's documentation for more information. I'm trying to brute…
MIBE
  • 61
  • 1
  • 1
  • 6
5
votes
2 answers

How to set GET parameters with PyCurl?

I'm trying to make a GET request for a REST api using PycURL. I am able to successful make a request if I do not pass any parameters. I am also able to make a POST request by doing the following: curl.setopt(pycurl.POSTFIELDS, post_data) I want to…
Andrew
  • 221
  • 2
  • 3
  • 6
5
votes
2 answers

pycurl - 302 redirect/page moved

Trying to successfully get a page/headers (response/request) using pycurl. I can successfully get it using java/htmlunit. I'm missing something subtle to get to the new/redirected page. I was/am trying to get the "new" redirected url, that is then…
tom smith
  • 1,035
  • 7
  • 23
  • 39
5
votes
1 answer

How can I handle a pycurl.error - Timed out exception?

The purpose of my PyCurl code is to iterate through an array of IP addresses and then print the response body's of each IP Address. The only problem with this, is that some IP's are actually offline, and when PyCurl cannot connect to the IP, it…
juiceb0xk
  • 949
  • 3
  • 19
  • 46
5
votes
2 answers

Not able to install io module in python 3.4 on win10

I'm trying to install the io module in python3.4 or in py 2.7 on my Win10 with python -m pip install io in order to use io.StringIO with pycurl but in both cases it says: Could not find a version that satisfies the requirement io (from…
delaflota
  • 159
  • 1
  • 3
  • 12
5
votes
6 answers

MAC OS ImportError: pycurl: libcurl link-time version (7.37.1) is older than compile-time version (7.43.0)

when i import curl in python interface,it displayed the error ImportError: pycurl: libcurl link-time version (7.37.1) is older than compile-time version (7.43.0). how to solve it ? my system is yosemite.
Qi.Liu
  • 51
  • 1
  • 2
5
votes
2 answers

What's the difference between pycurl and curl in python

Newbie question: Python 2.6, Ubuntu 10.04, I can import both pycurl and curl, the former having different names for functions (set_option vs. setopt). What's the difference between the two modules?
alexef
  • 442
  • 2
  • 13
5
votes
1 answer

zomato api request with python requests library

Zomato which is one of the most popular restaurant search engines provides free api service... If curl is used in api request, works perfectly; curl -X GET --header "Accept: application/json" --header "user_key: MY_API_KEY_HERE"…
5
votes
1 answer

Form data in pycurl request

I would like to make following curl request with pycurl: curl -v \ -H Accept:application/json \ -F "model={ name: 'zxy', targets: [ 'abc'] }" \ -F "deployment=@/deployments/MyApp.ear" \ -X POST https://abc.cde How to put to the postfield things…
Konrad
  • 630
  • 2
  • 11
  • 27
5
votes
1 answer

Getting DNS resolution time and response time with Python

Does PycURL or any other python pakcage provides information about : lookup connection time I would like to get the same information as this cURL command does (without calling the command using subprocess): Command curl -s -w '\nLookup…
4m1nh4j1
  • 4,289
  • 16
  • 62
  • 104
5
votes
2 answers

Fail to assign *IO() object to WRITEDATA, pycurl

Anyone else noticed that the pycurl example doesn't work on Python 2.*? import pycurl from StringIO import StringIO buffer = StringIO() c = pycurl.Curl() c.setopt(c.URL, 'http://pycurl.sourceforge.net/') c.setopt(c.WRITEDATA,…
user1906583
  • 115
  • 2
  • 9