All Questions
13 questions
0
votes
0
answers
902
views
Failed to perform, ErrCode: 35, Reason: 'Recv failure: Connection was reset'. error while requesting to twitter
my code is
async def request_username(self):
url = "https://twitter.com/i/api/1.1/account/settings.json"
response, response_json = await self.request("POST", url)
self....
0
votes
1
answer
1k
views
Certificate error with Python requests module
I am trying to code in Python what works for me with CURL:
curl --location -k --user "myuser" -X GET https://some_company_domain_path/cm/open-api/persistency/v1/yaml
Enter host password for ...
0
votes
1
answer
2k
views
How to avoid SSL handshake using curl, wget or Python requests?
I need to make a connection to a server but I'm having trouble with the ssl connection. The server simply doesn't give any certificate back:
$ openssl s_client -connect the-host-I-test.com:443 ...
0
votes
1
answer
4k
views
can connect to URL with curl but not with requests (i.e. requests ignoring my CA bundle?)
I am able to connect to a certain URL with cURL, after I installed the corresponding SSL certificates:
$ export MY_URL=https://www.infosubvenciones.es/bdnstrans/GE/es/convocatoria/616783
$ curl -vvvv $...
2
votes
0
answers
591
views
Getting a Connection error 10054 on a ssl flask server on aws-ec2
I am running a very simple flask app on an aws server:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello World!'
if __name__ == '__main__':
app.run (...
2
votes
1
answer
2k
views
curl --cacert vs python requests verify
I'm trying to connect to a website that uses unofficial CA via https. For some reason it works with curl but not with python requests.
See the example below
Python 3.8.0 (default, Oct 30 2019, 11:47:...
3
votes
2
answers
3k
views
Client certificate works in curl but not in Python
Using curl I can connect to a server that needs specific certificate.
curl -E ./file.crt.pem --key ./file.key.pem -k https://server.url
curl version: 7.29.0
But when using Python's requests library, ...
0
votes
1
answer
12k
views
Python SSL Bad Handshake
I'm having a very particular problem.
In particular, I'd like to retrieve the content of the following website: https://www.mycardtamoil.it/
As I understood, this website has some issues with the ...
2
votes
1
answer
3k
views
Requests module throwing OpenSSL.SSL.Error
I'm using a REST API from euronext.com, to go any further I need to verify the server certificate and send my own client certificate through the module requests.
I already did some testing with curl, ...
2
votes
1
answer
2k
views
Python REST request to HTTPS server with SSLv3
I am trying to retrieve data from a URL however it my connections are being blocked due to this error:
requests.exceptions.SSLError: HTTPSConnectionPool(host='securehost', port=4443): Max retries ...
0
votes
3
answers
926
views
Transform cURL command to Python Requests command
I'm new with cURL and Requests and I have a doubt on how I can transform a cURL petition to a Requests command in Python.
Looking at Apache Stratos documentation Doc Page to perform a login against ...
3
votes
2
answers
13k
views
Python requests SSL Hostname doesn't match error
I have been trying to access an API which is secured using SSL using python requests library as given below
requests.get('https://path/to/url',cert=('cert.pem','key.pem'),verify='ca.pem')
but am ...
0
votes
2
answers
419
views
cURL vs Requests (SSL issue?)
All, I'm getting some strange behavior trying to use requests for an https call into the gitub api:
print(requests.get('https://api.github.com/gists/bbc56a82f359eccd4bd6').text)
The output looks like ...