GetHTTPHeader(URL$, Timeout.i=0) optional timeout needed

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

GetHTTPHeader(URL$, Timeout.i=0) optional timeout needed

Post by infratec »

Hi,

GetHTTPHeader() is often used to check if a site answers.
But if not, it stucks. No timeout is implemented.

As temporary fix I created an own version:
http://www.purebasic.fr/english/viewtop ... 13&t=64132

But this should be a standard PB feature.

Bernd
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: GetHTTPHeader(URL$, Timeout.i=0) optional timeout needed

Post by uwekel »

...and automatic redirection would be nice, as well.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Post Reply