Jump to content
Vitaliy4us

Ia there any way to use InetRead($url) with login and password?

Recommended Posts

The function InetRead($url) returns a page containing login form, but I need to get it under my credentials (as a regular page for registered user). If I try to use the credentials in this way:

$url = "https://login:pass@URL"

the function does not work. Maybe it happens because of login is represented by email containing "@" character. Is their any way to get the page with InetRead($url) function under my credentials?

Share this post


Link to post
Share on other sites

Urlencode the username :).

Use %40 in your username instead of the @ symbol for the url encoding, e.g.:

http://my_email%40gmail.com:password@www.my_site.com

 

Share this post


Link to post
Share on other sites

If the page returns login form then form-based auth is used and credentials passed in this manner have no meaning (if at all, depending if system/browser/Inet..set of functions allows it).

This can only be used for "basic auth".


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
3 hours ago, KaFu said:

Urlencode the username :).

Use %40 in your username instead of the @ symbol for the url encoding, e.g.:


http://my_email%40gmail.com:password@www.my_site.com

 

Good hint, but I already have tried that without success.

Share this post


Link to post
Share on other sites
2 hours ago, trancexx said:

If the page returns login form then form-based auth is used and credentials passed in this manner have no meaning (if at all, depending if system/browser/Inet..set of functions allows it).

This can only be used for "basic auth".

You're right, @trancexx: I end up at a login form.
So it seems, my original try with username@password won't work in this case.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...