I have been given an IP address where the access is restricted via the .htaccess and requires user login via the prompt. However, this needs to be automated as there is an API on that IP which I need to access - is there a way I can send the username and password via the URL?
eg. I access the API via (space after "//" doesn't exist in real code): http:// 118.118.1.118/API/query
I've tried making the URL like this http:// username:password@118.118.1.118/API/query
, but it didn't work - I get failed auth. I tested on IE.
Any ideas?