mIRC Home    About    Download    Register    News    Help

Page 2 of 2 < 1 2
Topic Options
#265202 - 16/03/19 09:44 AM Re: $urlget bugs / discussion [Re: SykO]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4379
Loc: London, UK
Originally Posted By: SykO
urs:pass seems to be the problem. I currently tested sending Authorization header as follows:
Code:
bset -t &header 1 Authorization: Basic $encode(usr:pass,m)
$urlget(http://localhost:port/,gf,&target,noop,&header)

and it works

Is anyone else experiencing an issue with using user:password in $urlget()? I have tried to reproduce SykO's issue but in my tests, $urlget() is correctly logging into password protected folders.

Top
#265203 - 16/03/19 12:35 PM Re: $urlget bugs / discussion [Re: Khaled]
Loki12583 Offline
Hoopy frood

Registered: 22/01/04
Posts: 1263
I have tried user:pass even on a url which returns a redirect and still had no problem

Top
#265204 - 16/03/19 05:58 PM Re: $urlget bugs / discussion [Re: Loki12583]
SykO Online
Ameglian cow

Registered: 17/07/14
Posts: 27
Might just be on my end, but I do find it weird that using the header directly works.

My OS:
Edition: Windows 10 Education
Version: 1803
OS build: 17134.648

Top
#265205 - 17/03/19 12:28 PM Re: $urlget bugs / discussion [Re: SykO]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4379
Loc: London, UK
Originally Posted By: SykO
Might just be on my end, but I do find it weird that using the header directly works.

My OS:
Edition: Windows 10 Education
Version: 1803
OS build: 17134.648

Hmm. If it isn't working for you, it will likely not work for others as well.

If you use SmartSniff to monitor http packets, can you see if mIRC is sending the Basic Authorization header? This will only be visible with http and not https. For https, you would need to install something like Fiddler (which installs a root certificate to enable https decryption).

Also, can you let me know the type of server you are logging into? Is it linux/windows/apache/cpanel/amazon/etc.? I might be able to set up a similar service to test it out.

Top
#265208 - 17/03/19 03:40 PM Re: $urlget bugs / discussion [Re: Khaled]
0nslaught Offline
Ameglian cow

Registered: 11/08/04
Posts: 27
Originally Posted By: Khaled
Quote:
Add a switch to allow redirection to be followed with depth, -dN with N = 0 for infinite redirection, or N > 0 for N redirection

Currently, $urlget() gives up after 10 redirects. It does not detect cyclical redirections. As far as I know, most browsers have a redirect limit of between 10 to 20 redirects. Instead of adding an option for this, I would rather make it behave in a standard way. I could increase the limit to 20 but 10 seems reasonable? I would not want to allow infinite redirects.


How about a switch to disable auto-redirects?

Top
Page 2 of 2 < 1 2