mIRC Home    About    Download    Register    News    Help

Print Thread
#273729 22/11/25 09:17 AM
Joined: Sep 2005
Posts: 123
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2005
Posts: 123
Data cannot be retrieved via $urlget. This seems to be a bug because data is retrieved via sockread.

Fails & no data, except the urlget().reply now says code 200 and success.
Affects both win7 and win10.

Could possibly be looking for a content-length header for example?
Just guessing tho.

Quote
alias w1 {
;bset -t &header 1 Connection: close $+ $lf $+ Host: geocoding-api.open-meteo.com $str($lf,2)
noop $urlget(https://geocoding-api.open-meteo.com/v1/search?name=berlin&count=10,bgi,&w,w2)
;noop $urlget(https://geocoding-api.open-meteo.com/v1/search?name=berlin&count=10,bgi,&w,w2,&header)
}
alias w2 {
echo -s * $urlget($1).state * $urlget($1).method * $urlget($1).reply
if ($urlget($1).state == ok) {
echo -s $v1
}
}

Regards.


when no one watching us
we are invisible
deVilbaT #273732 Yesterday at 08:23 AM
Joined: Dec 2002
Posts: 3,871
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 3,871
Thanks for your bug report. WinINet is reporting a decode error when "deflate" is specified in the Accept-Encoding header on this particular website. I have not been able to reproduce this on other sites, so it seems that the implementation of deflate on this website is different from WinINet's version, which is a bit odd. In any case, I have changed $urlget() so that in the case of a decode error, it will retry the connection without compression, which resolves the issue in this case. This change will be in the next version.


Link Copied to Clipboard