HTTP authentication is a method for a HTTP user agent to provide a user name and a certain proof confirming the user's identity when making a request. Various proofs define different HTTP Authentication methods, e.g. basic, forms, digest, or others.
Questions tagged [http-authentication]
622 questions
6
votes
1 answer
How does http://user:pass@host.com authentication work?
Can anyone explain how http://user:pass@host.com authentication works? Does the browser send the Authorization header with user:pass being base-64 encoded?
I opened the Net console in Chrome developer tools and when I do request such as…

bodacydo
- 75,521
- 93
- 229
- 319
6
votes
4 answers
How to logout of an HTTP authentication (htaccess) that works in Google Chrome?
I got a solution for Firefox and IE but I didn't find any solution for Google Chrome.
Is there a way to do it in Google Chrome?

user983213
- 97
- 1
- 1
- 4
6
votes
1 answer
Avoid "cannot retry due to server authentication, in streaming mode" errors, without any CXF involved
I've searched a number of places for other people who have dealt with this HttpRetryException problem, but all the ones I found encountered it with some apache service called CXF, which I am not using. What I am using is the…

WindowsWeenie
- 389
- 1
- 5
- 11
6
votes
2 answers
Basic HTTP Authentication on Android Phones to Rails Server
I'm trying to connect to a Rails Application Server that requires authentication. I am using the Jakarta HTTP Client for Java on a Desktop application and it works 100%. But when the exact same code is executed on the Android Emulator I get an…

Christopher MacKinnon
- 313
- 1
- 6
- 17
6
votes
3 answers
Python requests equivalent for cURL's --location-trusted
With cURL, I can do --location-trusted to allow sending the name+password to all hosts the site may redirect to (http://curl.haxx.se/docs/manpage.html#--location-trusted).
Can I do something similar in Python with the requests library?

jianweichuah
- 1,417
- 1
- 11
- 22
6
votes
3 answers
php simplexml_load_file() with password protected url
Simple question for the one who knows the answer...
$xml = simplexml_load_file("http://url/path/file.xml");
This url is .htaccess protected, how can I pass the login/password as arguments to the function?

Pierre
- 4,976
- 12
- 54
- 76
6
votes
2 answers
Http Authentication in android using volley library
How to make Http Authentication for API using Volley library ?
I tried the following code ....it throws Runtime Exception & Null pointer exception..Please provide suggestions
String url = "Site url";
String host = "hostName";
int port = 80;
String…

Dharani Kumar
- 1,981
- 3
- 13
- 18
6
votes
2 answers
RTSP Authentication : digest issue
I need to authenticate my RTSP stream to a streaming server, here is the challenge :
RTSP/1.0 401 Unauthorized
WWW-Authenticate: Digest realm="Streaming Server", nonce="76bfe6986d3e766424de9bd6e7d3ccc1"
Session: 1845562184;timeout=60
Cseq:…

Pierre D
- 93
- 1
- 1
- 6
5
votes
1 answer
HTTP authentication with Apache HTTP Components: force sending of challenge
I need to talk to an obscure webserver which requires authentication. If I don't supply credentials, a login form is displayed. However, if I do supply unsolicited Basic Authentication credentials, I get directly to the desired content.
wget…

Kerrek SB
- 464,522
- 92
- 875
- 1,084
5
votes
3 answers
Chrome fails to show http authentication window
I am developing a Drupal site, within which is a page with an iframe, displaying an external SQL Reporting server driven site.
This iframed site is protected on by HTTP authentication. In all browsers, apart from Chrome, when the page is viewed, the…

Jon Hadley
- 5,196
- 8
- 41
- 65
5
votes
2 answers
Authenticate Scrapy HTTP Proxy
I can set an http proxy using request.meta['proxy'], but how do I authenticate the proxy?
This does not work to specify user and pass:
request.meta['proxy'] = 'http://user:pass@123.456.2323:2222'
From looking around, I may have to send…

Lionel
- 3,188
- 5
- 27
- 40
5
votes
2 answers
Is it possible to create a Git helper or plugin that adds HTTP headers or forces Bearer Token authentication
Background: We use Bitbucket Server (soon to upgrade/switch to Bitbucket DataCenter). In our authentication setup, we have user passwords disabled (web auth is via a different means), so for Bitbucket/Git purposes, we use Bitbucket Personal Access…

Nick Williams
- 2,864
- 5
- 29
- 43
5
votes
1 answer
FastAPI auth check before granting access to sub-applications
I am mounting a Flask app as a sub-application in my root FastAPI app, as explained in the documentation
Now I want to add an authentication layer using HTTPAuthorizationCredentials dependency, as nicely explained in this tutorial
tutorial code
How…

Luiz Tauffer
- 463
- 6
- 17
5
votes
4 answers
IIS as reverse proxy
I'm looking into to having IIS doing authentication in an application being executed on a J2EE server (JBoss). Is there any ways to have IIS work as reverse proxy and propagating the username and/or roles of the user the proxied application (JBoss).…

Tomas
- 1,725
- 2
- 18
- 27
5
votes
3 answers
Can I do preemptive authentication with httplib2?
I need to perform preemptive basic authentication against an HTTP server, i.e., authenticate right away without waiting on a 401 response. Can this be done with httplib2?
Edit:
I solved it by adding an Authorization header to the request, as…

aknuds1
- 65,625
- 67
- 195
- 317