Vitaliy4us Posted April 11, 2019 Share Posted April 11, 2019 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 comment Share on other sites More sharing options...
DonChunior Posted September 5, 2019 Share Posted September 5, 2019 I've got the same question: How can I use InetRead with username and password, when the username is an email address (already containing the character '@')? Link to comment Share on other sites More sharing options...
Developers Jos Posted September 5, 2019 Developers Share Posted September 5, 2019 Urlencode the password? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
DonChunior Posted September 6, 2019 Share Posted September 6, 2019 15 hours ago, Jos said: Urlencode the password? Jos Unfortunately this hasn't worked. Link to comment Share on other sites More sharing options...
KaFu Posted September 6, 2019 Share Posted September 6, 2019 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 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
trancexx Posted September 6, 2019 Share Posted September 6, 2019 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 Link to comment Share on other sites More sharing options...
DonChunior Posted September 6, 2019 Share Posted September 6, 2019 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. Link to comment Share on other sites More sharing options...
DonChunior Posted September 6, 2019 Share Posted September 6, 2019 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 comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now