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
2 answers

Curl POST into pycurl code

I'm trying to convert following curl request into pycurl: curl -v \ --user username:passwd \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X POST \ http://localhost:7001/some_context And it works. The following doesn't work: import…
Konrad
  • 630
  • 2
  • 11
  • 27
0
votes
1 answer

IP of Server using Tor and pycurl

I am working on a project using tor and python, for which I have to get the server ip of the given url using pycurl. Currently I am using the following code for simple query and response. def query(url): """ Uses pycurl to fetch a site using the…
coder
  • 119
  • 1
  • 2
  • 10
0
votes
0 answers

Centos 6.7 x86 64 on a Virtual Machine, I can't connect and I get PYCURL ERROR 6

Good morning to all, I have installed Centos 6.7 x86 64 on a Virtual Machine. It is not the first time I'm using this virtual machine...I have already installed a Windows xp 32 bit system, and a Centos 7 with graphical interfac system, and they both…
Maurizio
  • 139
  • 10
0
votes
0 answers

Im trying to automate curl put/delete/get to an application of an xml using python(pycurl)

I have a curl statement : curl -v -X PUT --header "Expect: " --header "X-XCAP-Asserted-Identity: \"sip:14257701100@msg.lab.t-mobile.com\"" --header "Content-Type: application/auth-policy+xml" --header "User-Agent: Web-Serv-Gateway-v1" --header…
0
votes
1 answer

How do you directly write to a request body in Python

I am currently implementing code to call out to an API where the post request body needs to contain several columns of data in csv format. e.g. Col1, Col2, Col3 1, 2, 3 4, 5, 6 etc, with the content type header is set to 'text/csv' How do I…
sasker
  • 2,221
  • 2
  • 21
  • 26
0
votes
0 answers

pycurl READFUNCTION callback not called when using FORM_FILE

I'm sending a file using HTTPPOST and FORM_FILE and I'd like to register to the READFUNCTION callback in order to abort the transfer in certain cases (low network coverage). Here is a sample of my code: self.curl.setopt(pycurl.URL,…
Teriblus
  • 789
  • 6
  • 17
0
votes
2 answers

Installing pycurl for Python 2.6 on Mac OS

I have a Mac OS (El Capitan 10.11.3) and I'm trying to install pycurl library for Python 2.6.9. Unfortunately, when I try: easy_install pycurl I have: Searching for pycurl Best match: pycurl 7.19.5.3 Processing…
Konrad
  • 630
  • 2
  • 11
  • 27
0
votes
1 answer

Silencing libcurl/pycurl PUT and POST

I have a python script which does a bunch of PUTs and POSTs, and when they are successful curl will output the updated html to stdout. I was wondering if there was a way to keep it from doing this? I don't really care about this information, so…
Ishka
  • 1
  • 1
0
votes
1 answer

How to input the header from user

I want to add value to receive input from the user to the header . But, An error occurs due to two variables(x_user, x_key) when declare a variable header . 1. Stored in list the user data in file.csv command of input is ID = input("input the…
Mr.Sharp
  • 121
  • 1
  • 2
  • 10
0
votes
1 answer

curl example to pycurl

Here is my command curl -i -H 'X-Storage-User:12345:12345' -H 'X-Storage-Pass:new1234' https://ssproxy.ucloudbiz.olleh.com/auth/v1.0 Result HTTP/1.1 200 OK Date: Fri, 08 Jan 2016 05:49:06 GMT Content-Type: text/html; charset=UTF-8 Content-Length:…
Mr.Sharp
  • 121
  • 1
  • 2
  • 10
0
votes
1 answer

Use pycurl with sublime text 3 plugin developemnt

I want to use pycurl with ST3 for one of my plugin which am creating. I installed pycurl using pip3 install pycurl and I can get it working on python console but when I use import pycurl in my ST3 plugin it throws error ImportError: No module named…
RanRag
  • 48,359
  • 38
  • 114
  • 167
0
votes
1 answer

Handling error response from PYCURL

I relatively new to python, but have been writing some basic scripts for my job to check the status of files on specific servers by ftp. I understand there are better modules for ftp, but due to security restrictions on our work computers we are…
0
votes
2 answers

cross-compiling pycurl-7.19.5.1

I am trying to cross-compile the latest pycurl package, but the problem may apply to earlier versions as well. My googling has revealed this package not to be very cross-compile friendly. First of, I am using buildroot and the buildroot toolchain(…
Pandrei
  • 4,843
  • 3
  • 27
  • 44
0
votes
1 answer

Formatting of Redirect URI in Instagram API Calls

I'm writing a python script using webpy to grab an authentication token for an Instagram user, and I keep bumping up against "Redirect URI doesn't match original redirect URI". It goes a little something like this: Step 1 The user first visits…
Eric Arenson
  • 797
  • 1
  • 6
  • 11
0
votes
0 answers

Error importing pycurl, for one user

I have installed pycurl (see Cannot install pycurl on Mac OS X - get errors 1 and 2) but one user gets this error: >> import pycurl Traceback (most recent call last): File "", line 1, in File…
Philip Kearns
  • 377
  • 4
  • 14