HTTPRequest - supply HTTP return code

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
User avatar
SparrowhawkMMU
Posts: 291
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

HTTPRequest - supply HTTP return code

Post by SparrowhawkMMU »

Hi Fred,

Would it be possible to supply the HTTP return code (eg 200, 503, 404 etc etc) made using HTTPRequest?

either:
1) by Making HTTPRequest a function rather than a keyword, with the return value being the HTTP code or 0 for a generic failure (disadvantage is that it would break any existing SB code)

2) as part of the parameters in the callback procedure

3) or maybe add a new function, such as GetLastHTTPReturnCode()

Additionally, if we could get access to the return headers, that would be great too.