Page 1 of 1
can't send HTTP request if Apache auth required **solved**
Posted: Wed Sep 14, 2016 12:15 pm
by Medor
I have secured my personal domain and server with a combination of HTTPS and the basic Apache module mod_auth_basic, which means that to access the server, one has to provide the pre-defined identifiers through a dialog box sent by Apache.
Is there a mechanism to send the username and password with the request of a meteobridge HTTP event ?
Re: can't send HTTP request if Apache authentication require
Posted: Wed Sep 14, 2016 3:12 pm
by Medor
I setup another domain without SSL nor authentication, so that I could get the meteobridge data.
I'd be curious to have an answer to my previous question.
Just a remark : when one modifies an HTTP event (I changed the domain name in the request) and when one pushes the [TEST] button, the previous request is sent, not the one which is displayed.
It took me a good while to understand why the web server did not receive the data sent by meteo bridge. I had to actually [SAVE] the modification...
Re: can't send HTTP request if Apache authentication require
Posted: Sat Sep 17, 2016 3:05 pm
by admin
Medor wrote:I have secured my personal domain and server with a combination of HTTPS and the basic Apache module mod_auth_basic, which means that to access the server, one has to provide the pre-defined identifiers through a dialog box sent by Apache.
Is there a mechanism to send the username and password with the request of a meteobridge HTTP event ?
Did you try "
http://username:password@mydomain.com/lala/xyz.php"? This is how basic auth is handled inside the URL.
Re: can't send HTTP request if Apache authentication require
Posted: Mon Sep 19, 2016 4:29 pm
by Medor
I should have remembered that one, of course it works, thanks for the reminder.
Not sure why, but if I send an HTTP request with the identifiers, it won't work : I have to use HTTPS for the URL to work.