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
20
votes
9 answers

Can't install pycurl with pip

Can't install pycurl with pip, win xp x32, python 2.7. here is the log pip install pycurl Downloading/unpacking pycurl Downloading pycurl-7.19.3.1.tar.gz (116Kb): 116Kb downloaded Running setup.py egg_info for package pycurl Please specify…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
18
votes
0 answers

Install pycurl on Mac OSX Snow Leopard

After hours of reading on the internet I found the easiest solution to install pycurl on mac os x. Make sure you have Xcode UNIX tool installed and run this command. sudo env ARCHFLAGS="-arch x86_64" easy_install setuptools pycurl==7.16.2.1
Dragos C
  • 363
  • 3
  • 7
17
votes
1 answer

Convert curl example to pycurl

Could someone convert the following PostMark curl example to pycurl? curl -X POST "http://api.postmarkapp.com/email" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "X-Postmark-Server-Token:…
Darth
  • 379
  • 1
  • 2
  • 8
17
votes
6 answers

SSL error installing pycurl after SSL is set

Just some information to start: I'm running Mac OS 10.7.5 I have curl 7.21.4 installed (came with dev tools I believe) I have python 2.7.1 I've been trying to get pycurl installed, but every time I try to run it, I get: ImportError: pycurl:…
nivekmai
  • 196
  • 1
  • 1
  • 6
16
votes
2 answers

Installing pycurl with 'fatal error: gnutls/gnutls.h: No such file or directory'

I use ubuntu 16.04 and python 2.7.12. When I try to install pycurl with pip, I could see below log. aaa@bbb:~/git/ccc$ sudo pip install pycurl Downloading pycurl-7.43.0.tar.gz (182kB) 100% |████████████████████████████████| 184kB 515kB/s…
xoska74
  • 1,450
  • 2
  • 11
  • 17
16
votes
5 answers

Curl POST request into pycurl code

I'm trying to convert following curl request into pycurl: curl -v -H Accept:application/json \ -H Content-Type:application/json \ -d "{ name: 'abc', path: 'def', target: [ 'ghi' ] }" \ -X POST http://some-url I have following python…
Konrad
  • 630
  • 2
  • 11
  • 27
16
votes
4 answers

Having trouble installing pycurl on windows

I'm having trouble getting pycurl installed on my windows computer. At first I tried pip, but ran into the “Please specify --curl-dir=/path/to/built/libcurl” error, and have since tried installing curl before running it again. I downloaded curl from…
Stewart Polley
  • 224
  • 1
  • 2
  • 9
16
votes
1 answer

Pycurl and io.StringIO - pycurl.error: (23, 'Failed writing body)

I'm porting ebay sdk to python3 and I've stumbled upon the following issue. I'm using pycurl to send some HTTP requests. Here is how I configure it: self._curl = pycurl.Curl() self._curl.setopt(pycurl.FOLLOWLOCATION, 1) …
Nikolay Derkach
  • 1,734
  • 2
  • 22
  • 34
16
votes
1 answer

pycurl https error: unable to get local issuer certificate

>>> import pycurl >>> c = pycurl.Curl() >>> c.setopt(c.URL, 'https://quora.com') >>> c.perform() Traceback (most recent call last): File "", line 1, in pycurl.error: (60, 'SSL certificate problem: unable to get local issuer…
prongs
  • 9,422
  • 21
  • 67
  • 105
15
votes
6 answers

How to trigger authenticated Jenkins job with file parameter using standard Python library

We are currently triggering Jenkins jobs from a Python script with the help of PycURL. We would like, however, to get rid of the PycURL dependency, but have had little success so far. What makes our scenario more complicated is that we need to post…
aknuds1
  • 65,625
  • 67
  • 195
  • 317
15
votes
2 answers

HandShake Failure in python(_ssl.c:590)

When I execute the below line, req = urllib2.Request(requestwithtoken) self.response = urllib2.urlopen(req,self.request).read() I am getting the following exception: SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure…
15
votes
8 answers

Create missing directories in ftplib storbinary

I was using pycurl to transfer files over ftp in python. I could create the missing directories automatically on my remote server using: c.setopt(pycurl.FTP_CREATE_MISSING_DIRS, 1) for some reasons, I have to switch to ftplib. But I don't know how…
AliBZ
  • 4,039
  • 12
  • 45
  • 67
14
votes
2 answers

PycURL installation on Python 3.7.0 (Windows 10)

I'm having a problem to install PycURL on the following environment Environment Python 3.7.0 Windows 10 Problem C:\>pip install pycurl Collecting pycurl Using cached…
user9013730
14
votes
7 answers

Screen scraping with Python

Does Python have screen scraping libraries that offer JavaScript support? I've been using pycurl for simple HTML requests, and Java's HtmlUnit for more complicated requests requiring JavaScript support. Ideally I would like to be able to do…
Marco
  • 4,345
  • 6
  • 43
  • 77
13
votes
2 answers

PyCurl installed but not found

I've been trying to install pycurl in a virtualenv with easy_install, and it appears to install correctly: (xxx) $ easy_install pycurl Searching for pycurl Reading http://pypi.python.org/simple/pycurl/ Reading http://pycurl.sourceforge.net/ Reading…
majackson
  • 2,823
  • 6
  • 22
  • 38
1
2
3
40 41