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
7
votes
1 answer

Python3 properly install PyCurl

I'm trying to install pycurl on my ubuntu 16.04 LTS, the module looks installed but it gives me "No module named pycurl" when I try to import it from python. my python3 version is 3.7.8 pip3 freeze |grep pycurl tells me that version 7.43 is…
Dany M
  • 760
  • 1
  • 13
  • 28
7
votes
2 answers

“Could not run curl-config: [Errno 2] No such file or directory” when installing pycurl on Alpine Linux

I'm trying to install pycurl via: sudo pip install pycurl It downloaded fine, but when when it runs setup.py I get the following traceback: Downloading/unpacking pycurl Running setup.py egg_info for package pycurl Traceback (most recent call…
irishcoder
  • 181
  • 2
  • 8
7
votes
1 answer

How upload folder by FTP using cURL?

I need to create FTP-uploader, i am using pycurl and python, but i dont know how to make folder with cURL on ftp's host. Help me please.
kalombo
  • 861
  • 1
  • 9
  • 31
7
votes
3 answers

What good tutorials exist for learning pycURL?

I'm planning on building my own FTP client in Python for learning purposes. I'm planning on using PycURL but the documentation seems to be lacking. What good tutorials are there for learning pycURL?
ajushi
  • 1,237
  • 4
  • 16
  • 28
7
votes
0 answers

How to force specific network interface for outgoing connection in Python under Windows 7?

I have two network adapters in Windows 7 environment, and both of them are connected to Internet: Ethernet Adapter (local address 10.9.187.251, external address 32.181.63.52) Wireless LAN Adapter (local address 192.168.1.178, external address…
Serge S.
  • 4,855
  • 3
  • 42
  • 46
7
votes
1 answer

ERROR "Extra data: line 2 column 1" when using pycurl with gzip stream

Thanks for reading. Background: I am trying to read a streaming API feed that returns data in JSON format, and then storing this data to a pymongo collection. The streaming API requires a "Accept-Encoding" : "Gzip" header. What's happening: Code…
Sagar Hatekar
  • 8,700
  • 14
  • 56
  • 72
6
votes
2 answers

OS starts killing processes when multi-threaded python process runs

This is the strangest thing! I have a multi-threaded client application written in Python. I'm using threading to concurrently download and process pages. I would use the cURL multi-handle except that the bottleneck is definitely the processor…
KeatsKelleher
  • 10,015
  • 4
  • 45
  • 52
6
votes
1 answer

PyCurl alternative, a pythonic wrapper for libcurl?

PycURL is a thin wrapper around the C libcurl API, I wonder if there's any more pythonic wrapper for libcurl which supports CurlMulti ?
est
  • 11,429
  • 14
  • 70
  • 118
6
votes
2 answers

Error installing PyCurl

I tried installing pycurl via pip. it didn't work and instead it gives me this error. running install running build running build_py running build_ext building 'pycurl' extension gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g…
Mickey Cheong
  • 2,980
  • 6
  • 38
  • 50
6
votes
1 answer

Problems installing PyCurl on python2.7.0+

pycurl installs fine on python2.6 but i get the following error when I try to install in on 2.7 via easy_install on maverick $ sudo easy_install pycurl install_dir /usr/local/lib/python2.7/dist-packages/ Searching for pycurl Reading…
agentargo
  • 401
  • 5
  • 17
6
votes
2 answers

pycurl/curl not following the CURLOPT_TIMEOUT option

I have a multi-threaded script which occasionally freezes when it connects to a server but the server doesn't send anything back. Netstat shows a connected tcp socket. This happens even if I have TIMEOUT set. The timeout works fine in an unthreaded…
Incognito
  • 1,883
  • 5
  • 21
  • 28
6
votes
1 answer

pycURL; Received HTTP code 400 from proxy after CONNECT

I'm using pycURL to make a few requests to a https site through a http proxy. Here's my code: import pycurl buf = cStringIO.StringIO() c = pycurl.Curl() c.setopt(c.URL, url) # 'url' is the base url of the form…
cs95
  • 379,657
  • 97
  • 704
  • 746
6
votes
1 answer

Uploading a file via pyCurl

I am trying to convert the following curl code into pycurl. I do not want to use requests. I need to use pycurl because requests is not fully working in my old python version. curl -X POST -H "Accept-Language: en" -F "images_file=@fruitbowl.jpg" -F…
v33j
  • 103
  • 1
  • 6
6
votes
2 answers

Problem trying to install PyCurl on Mac Snow Leopard

My app needs to use PyCurl, so I tried to install it on my Mac but I found a lot of problems and errors. Requirement: First of all I have to say that the version of Python working on my Mac is 32 bit based, because I need to use WxPython, that needs…
elledienne
  • 1,135
  • 1
  • 11
  • 18
6
votes
1 answer

python pycurl get final url redirect

i need visit website whit pycurl, follow redirects, and print final url, i write this python code : c = pycurl.Curl() c.setopt(c.URL, 'http://localhost/redirect.php') c.setopt(c.HTTPPOST, values) c.setopt(c.WRITEFUNCTION,…
kingcope
  • 1,121
  • 4
  • 19
  • 36