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

Pycurl install error

When I am trying to install pycurl using easy_install, I get this error: Traceback (most recent call last): File "/Applications/djangostack-1.6.2-0/python/bin/easy_install", line 9, in load_entry_point('distribute==0.6.34',…
Shivratna
  • 190
  • 2
  • 11
0
votes
1 answer

What's the corresponding option of CURLOPT_ACCEPT_ENCODING in pycurl?

pycurl is a python binding for liburl. For most of the options in libcurl there is a corresponding on in pycurl. But I can not find the ones for CURLOPT_ACCEPT_ENCODING and CURLOPT_TRANSFER_ENCODING. By the way, I am using ubuntu 13.04, and pycurl…
Daniel Dai
  • 1,019
  • 11
  • 24
0
votes
1 answer

pycurl 302 response get location value

I am trying to get, some values from pycurl response because some different protocols produce some errors like pycurl Error: [1] Protocol tel not supported or disabled in libcurl I have to use followlocation 1 and, has different protocol like tel:…
user2136174
  • 119
  • 1
  • 4
  • 12
0
votes
1 answer

How to translate url requests using pycurl to python-requests?

I would like to modify following code to run use 'requests' module. I have the following code which is working on a website: def post(url, message, key, sign): curl = pycurl.Curl() curl.setopt(pycurl.URL, url) …
roeiba
  • 156
  • 12
0
votes
1 answer

Pycurl sometimes take up to 80%~100% CPU, causing congestion

I'm using pycurl in a test application to stress my application via REST. I notice if I just send 1000 messages per second, pycurl would start taking up alot of CPU and sometimes return an error message. pycurl.error: (7, 'Failed to connect to…
user2066671
  • 177
  • 4
  • 16
0
votes
2 answers

pycurl infinite loop and getopt issue

I am new to coding and and trying to learn as I go. I'm trying to create a python script that will grab and print all HEADERS from a list of urls in a txt file. It seems to be getting there but im stuck in an infinite loop with one of the urls and I…
0
votes
0 answers

pycurl exit code 139

I have a problem with this code: import pycurl c = pycurl.Curl() c.setopt(c.URL, 'http://blackseoshnick.ru/') c.setopt(pycurl.FOLLOWLOCATION, 1) c.setopt(pycurl.SSL_VERIFYPEER, 0) c.setopt(pycurl.SSL_VERIFYHOST, 0) c.perform() Process finished…
0
votes
3 answers

Mod_Python + Django library import issue

I recently had a site that was running perfect for months, all of a sudden it decided to dump itself for no approximate reason. I am running django + mod_python + apache, and the system decided it was time to start ignoring the import of the pycurl…
nwhiting
  • 103
  • 6
0
votes
1 answer

pyCurl spikes CPU when I add option MAX_SEND_SPEED_LARGE

My app uses PyCurl to upload multiple files one by one. It works all good with all cURL options and CPU consumption remains below 1%. When I add MAX_SEND_SPEED_LARGE option to throttle bandwidth, CPU consumption goes to…
Nilay Anand
  • 330
  • 4
  • 17
0
votes
3 answers

pycurl module not available after installation on Snow Leopard

I'm running Python 2.6.4 on Mac Snow Leopard. I installed pycurl using: sudo env ARCHFLAGS="-arch x86_64" easy_install setuptools pycurl==7.16.2.1 The installation completes with no issues and says pycurl is installed in subsequent installation…
Geuis
  • 41,122
  • 56
  • 157
  • 219
0
votes
2 answers

python requests module not able to upload file on django server

I am trying to upload a file to django python server through python client. I tried this - import requests url = 'http://wings.spectrumserver/sdm/lists' files = {'file': open('file.ext', 'rb')} r = requests.post(url, files=files) but somehow it is…
Udit Gupta
  • 3,162
  • 11
  • 43
  • 71
0
votes
1 answer

construct curl command in python to be placed into a python monitoring script

I can issue CURL commands to an instance of my elasticsearch engine from the command line as shown below. But how can I issue these commands in python monitoring script? I can only use the default python 2.7 built-in std python packages. Examples…
Horse Voice
  • 8,138
  • 15
  • 69
  • 120
0
votes
1 answer

using pycurl to get a "csv dump"

I'm trying to automate a tedious task to update the statuses of our change requests/cr's/bugs. Since the DataBase schema is extremely complex, I've resorted to issued a curl command to the web server to download a dump of the CRs along with their…
Ramy
  • 20,541
  • 41
  • 103
  • 153
0
votes
1 answer

Pycurl won't import on Raspberry Pi

I'm trying to use pycurl on the Raspberry Pi. I've successfully installed pycurl using apt-get install python-pycurl and I've found a little script to use to see if it's working correctly: import pycurl c = pycurl.Curl() c.setopt(c.URL,…
Robottamer
  • 37
  • 1
  • 3
0
votes
1 answer

Invalid syntax on ".perform()" with Python

I am trying to download a zip file to my Ubuntu 10.04 workstation and limit the transmit limit to 100 kB/s. When running the script I get the following: File "./iso.py", line 7 iso.perform() ^ SyntaxError: invalid syntax Here is the…
Greg
  • 247
  • 1
  • 4
  • 14