All Questions
12 questions
1
vote
0
answers
313
views
python: keep HTTP connection open with requests module [duplicate]
I use requests python module as following:
import requests
from requests.structures import CaseInsensitiveDict
...
response = requests.post(URL, json={ 'a': '123', 'b': '456' })
...
I'm assuming ...
3
votes
3
answers
3k
views
Bittrex REST API for Python, I want to create an order using API v3 https://api.bittrex.com/v3/orders
I need help to create orders using the bittrex version 3 REST API. I have the code below and I can't understand what is missing to work.
I can make other GET calls, but I cannot make this POST ...
0
votes
0
answers
31
views
Need to extract information from the JSON response?
I have a rest endpoint giving me below response. I am using python and using requests and json library.
From the below response, i want to get messageId from the lastMessage tag.
And list of all ...
1
vote
2
answers
745
views
Python 2.7 requests REST API call not working same as curl
I am trying to do a curl post query using requests python 2.7, however the API response differently using curl vs. requests lib.
The post query is pretty simple a file and name-value-pair data as the ...
0
votes
2
answers
149
views
how to parametrize url in put requests using python
I am trying to send parameterized url in put request using python.
One of my function "getipaddress()" is returning the device ip address as 192.168.72.31
Code:
import requests
ips= getipaddress()
...
-3
votes
1
answer
3k
views
When calling Rest API from Python 2.7 requests, it responds "reason" but I don't see that in my API
When I call the socialcast api from python 2.7 using requests, I get a response "reason" but I don't see that text in my actual API. Here's my code:
import requests
parameters = {"username" = "...
6
votes
2
answers
4k
views
Stream pricing from oanda V20 rest api using python requests
I'm trying to stream the price of an instrument from Oandas' V20 rest api but with not much success. I am using python requests as that worked for regular get requests. Here is where i have got to:
...
0
votes
1
answer
321
views
Error 500 when running exec start with Docker Remote API
I am using Docker Remote Api and python requests v2.2.1 to run an exec statement. This is the code I'm using:
import requests
import json
containerName = 'my_container_name'
startContainerRequest = ...
0
votes
0
answers
2k
views
REST Call using 'requests' library in Python 2.7
I am trying to execute a REST POST call using 'request' library, and i am using python 2.7
What happening is, somehow the call is not getting executed via python script and and i am getting HTTPS ...
0
votes
1
answer
1k
views
How to Upload file using rest API in robot framework
Not able to upload file/send multipart/form-data using robot framework's requests library.
${headers} multipart/form-data
${file_data}= Get Binary File C:\\abc.txt
${upload_data}= ...
1
vote
1
answer
5k
views
SSLError (read operation timed out) instead of timeout when PUT using Requests
I'm trying to do various REST requests to a piece of equipment using the Requests package.
It is working, but on some requests, like PUTs, I'm getting a SSLError, instead of a timeout that I'm ...
0
votes
1
answer
634
views
Using Keep Alive in Requests module - Python 2.7
My internet connection has an issue. Around 50% of times, web pages don't load because of DNS look up failing. Just reloading page works, and I am able to browse like that.
However, I am also using ...