Code: Select all
whr.WaitForResponse
status := whr.status
if (status != 200)
throw "Failed to download data. Status: " . status
Code: Select all
whr.WaitForResponse
status := whr.status
if (status != 200)
throw "Failed to download data. Status: " . status
Code: Select all
try
whr.WaitForResponse
catch e
{
status := whr.status
if (status != 200)
throw "Failed to download data. Status: " . status
}