Skip to main content

All Questions

0 votes
2 answers
2k views

How to add login credential via python script?

I am sure this is an answered question somewhere, but I could not find a solution for me (if you know a duplicate feel free to mark it). My goal is to query a RESTful API. To do that I need to ...
Newskooler's user avatar
  • 4,263
0 votes
2 answers
477 views

Python Curl request with access token not working

I am running below API query using curl I am getting json response. curl -X POST -H 'Content-Type: application/json' -H 'X-Metabase-Session: sdfeffff-sdfdf-ffff-ffff-fffffffff' https://dash....
Veera's user avatar
  • 11
1 vote
1 answer
976 views

login with python requests

I want to use Python's requests module to login to the webpage https://www.tennistv.com/login. I read this post on how to achieve this, however, I get stuck. The payload looks as follows: payload = {...
beta's user avatar
  • 5,706
2 votes
1 answer
43 views

How to verify if the user and password part is readable by intermediary servers when accessing a url

If I want to use URL authentication of the form: http://user:[email protected] Is it guaranteed that the user and password are not seen by any servers between me and the requests's destination? I'...
hokedo's user avatar
  • 156
-2 votes
1 answer
9k views

Python request with access token not working

When I am running below API query using curl I am getting json response curl -X GET --header 'Accept: application/json' --header 'token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c' 'https://localhost:...
cgoma's user avatar
  • 49
1 vote
0 answers
104 views

How can I mimic the -u and -d flags of curl in Python?

I've basically this curl command which I use in order to retrieve and access token curl -u "username:password" --silent \ -d "grant_type=password&username=app_username&password=...
user2697881's user avatar
1 vote
0 answers
362 views

Use Requests instead of PyCurl, login with cookies

I actually use pycurl for requests to a specific site. https://uniparthenope.esse3.cineca.it/ The login method isn't by post request. I use pycurl in this way: page = BytesIO() cookie=...
cdm's user avatar
  • 129
2 votes
2 answers
2k views

How to use an auth token and submit data using Python requests.POST?

Using WheniWork's api, I need to use a token for authentication, and I also need to send data to create a new user. Does the order or name of arguments I send with requests.post() matter? If I'm ...
Bobby Battista's user avatar
7 votes
3 answers
29k views

python requests with redirection

Trying to authenticate on http://72.ru site, noticed that there were a redirect to https://loginka.ru/auth/. Found that there were 302 POST with plain credentials in data form. Copying headers from ...
kAldown's user avatar
  • 626