can't send HTTP request if Apache auth required **solved**

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
Medor
Junior Boarder
Junior Boarder
Posts: 31
Joined: Sun Apr 21, 2013 10:00 pm

can't send HTTP request if Apache auth required **solved**

Post 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 ?
Medor
Junior Boarder
Junior Boarder
Posts: 31
Joined: Sun Apr 21, 2013 10:00 pm

Re: can't send HTTP request if Apache authentication require

Post 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...
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: can't send HTTP request if Apache authentication require

Post 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.
Medor
Junior Boarder
Junior Boarder
Posts: 31
Joined: Sun Apr 21, 2013 10:00 pm

Re: can't send HTTP request if Apache authentication require

Post 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.
Post Reply