ReceiveHTTPFile() with following redirections

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

ReceiveHTTPFile() with following redirections

Post by uwekel »

Hi,

when downloading files from the web, sometimes it happens that a server replies with a 301 redirection, and the ReceiveHTTPFile() function seems to fail. It would be nice, if the function would follow such redirections, maybe optional with a flag (e.g. in Python the urllib does it automatically).

Thx for reading.

Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2