Page 1 of 1

HTTPRequest GET with user/password

Posted: Sat Jan 16, 2021 12:13 am
by hujambo
Hi guys,

I'm looking to connect to a device via HTTPS that is on a private network with a user/password to access it's web gui. User:Password@https://192.168.1.10 doesn't work btw. Can you run a HTTPRequest GET an include user/password info? Idealy I want to use ReceiveHTTPFile to access the status page once connected.

Looking on the Forum there is a lot of outdated information mentioning libcurl.pbi that I believe no longer works. Can anyone point me in the right direction please.

Many thanks,

Ed

Re: HTTPRequest GET with user/password

Posted: Sat Jan 16, 2021 7:33 am
by Marc56us
User:Password@https://192.168.1.10 doesn't work
https://username:password@192.168.1.10

But:
- Not secure to keep user/passwd in url
- Not work with all browsers

Re: HTTPRequest GET with user/password

Posted: Sat Jan 16, 2021 10:44 am
by infratec
There is always a way ...
but yo need to know the webpage and how to answer the login.
So first you should try the easy way (seee above) then, if not working, you need to look at the web traffic
via WireShark.
Then you see how the data is transferred to the server.