Jump to content

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?

Link to post
Share on other sites
  • 4 months later...

Urlencode the username :).

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



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.

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