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

Translating "curl -X POST http://something" to pycurl equivalent

I'm a total newbie to curl/pycurl and came across this situation. Help + additional explanation would be great appreciated! For whatever reason, "curl -X POST http://something" works for this API service I am experimenting with. However, I don't…
0
votes
0 answers

Translate cURL JSON data to pycurl

I have this cURL command that returns a JSON file from some website: curl -H "Content-Type:application/json" -d "{'item':'item-xyz',orientation:LANDSCAPE,choice:null}" https://api.website.com/jsonApi/product/formatAndPrice However, this Python…
Aurélien Pierre
  • 604
  • 1
  • 6
  • 20
0
votes
1 answer

Rundeck API to upload job using python pycurl fails to upload file

I'm trying to implement rundeck job import functionality using pycurl in python, fails to find the file. Curl version of the same works fine. def importRundeckJOB(jobConfigFilePath): responseObject = BytesIO() rd =…
KBP
  • 1
  • 1
0
votes
1 answer

How to fetch all the latest documents using elastic search based on timestamp

I'm new to elastic search, i need to fetch documents which are newly affected or last 1 days using "get" and insert to a postgres table The one i tried using search and giving now() - 1440m this is fetching entire records, i need only recent one's
sanjana jha
  • 209
  • 3
  • 14
0
votes
1 answer

Reading multiple urls from text file and find RESOLVE results using pycurl

I need to get the result of all urls present in text file with looks something like below www.google.com example.com facebook.com with more than 1000 URL's in file and i need to parse one by one url through the file to test results buf =…
0
votes
1 answer

Python pycurl post values to a web form really simple

All I want to do is convert this curl code to pycurl: curl -d "username=Bruce&submit=Submit" "https://mytestwebsite.com/testingcurl" So all it's gonna do is send the username "Bruce" and submit. Yet, all the examples I've looked at have been…
agent_smith1984
  • 233
  • 3
  • 13
0
votes
0 answers

pycurl.multicurl - Cant get my the returned results, only the object memory address

I have been trying to get this example code working https://fragmentsofcode.wordpress.com/2011/01/22/pycurl-curlmulti-example/ for a bit tonight and it has me stumped (not difficult). m = pycurl.CurlMulti() for url in urllist: response =…
RedChair
  • 43
  • 7
0
votes
0 answers

Why the pycurl response is different on my nginx server compared to the response on my computer

I use python pycurl for get this page https://www.instagram.com/nilliewinnie/?__a=1. On my computer pycurl return json object (that I want) but on my nginx server they return a page with javascript and html (page with grey instagram logo on center…
Hugo Levet
  • 319
  • 1
  • 9
0
votes
1 answer

Delete file on ftp server with pycurl

Is it possible to delete a file on ftp server in python with the pycurl-lib? My code so far, but not working, it throws: (21, 'QUOT command failed with 550') c = pycurl.Curl() c.setopt(pycurl.URL, 'ftp://ftpadress/testdirectory') …
coderone
  • 1
  • 2
0
votes
0 answers

How to send requests using curl through burp with python?

I'm trying to route certain requests through burp. These would be HTTPS requests I have burp properly installed, and placed the cacert.der certificate in the current working directory that the code is contained. I've looked at…
user5423
  • 135
  • 13
0
votes
0 answers

@libext@ @LDFLAGS@ @LIBCURL_LIBS@ variables not being substituted in clang command when installing pycurl2

I'm trying to install pycurl2 with pip (pip install 'pycurl2==7.20.0'), but it's failing on this clang command: clang -bundle -undefined dynamic_lookup -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl@1.1/lib…
Edward D'Souza
  • 2,453
  • 1
  • 26
  • 24
0
votes
1 answer

What is the best way to know which protocols are supported by curl in python?

I am building a python application that is used to download remote files. In most cases, we use pycurl to do the actual download but we need to define a class that wraps the pycurl object. The class can handle several protocols (HTTP(S), FTP(S) and…
Mathieu Dubois
  • 1,054
  • 3
  • 14
  • 22
0
votes
2 answers

How to execute a curl command in Python and get the response and pass it through other code

I have a curl command. I want to execute in in Python and fetch the response to pass it through other code. curl https://api.box.com/oauth2/token -d 'grant_type=refresh_token' -d…
Debasis
  • 83
  • 9
0
votes
1 answer

Problems downloading Office365/Exchange calendar using pycurl

I have been using the ews-orgmode / ews-fetch-calendar.py Python script for a couple of months to download my Office365/Outlook/Exchange work calendar without problems. However, last week I rearranged the Python environments on my Linux system…
AstroFloyd
  • 405
  • 5
  • 14
0
votes
2 answers

How can this curl command be converted to pycurl or python requests?

any hel pwill be highly appreciated. Just can't make this to work. I am basically trying to update my Grafana dashboard via a http request. managed to get it to work with curl but want to do this with python's requests or pycurl. curl -X PUT…