Re: [twsocket] Exception in THttpCli when server responds with Status = 0

2016-02-13 Thread Angus Robertson - Magenta Systems Ltd
> I was getting a response from an HTTP Server where the Status was > set to 0 (instead of 1xx-5xx). This was causing an exception in > my application. > > Although this is an error on the server side, shouldn't the code > be changed from: > > procedure THttpCli.GetHeaderLineNext; > [...] >

[twsocket] Exception in THttpCli when server responds with Status = 0

2016-02-12 Thread Doug Billi
I was getting a response from an HTTP Server where the Status was set to 0 (instead of 1xx-5xx). This was causing an exception in my application. Although this is an error on the server side, shouldn't the code be changed from: procedure THttpCli.GetHeaderLineNext; [...] FStatusCode :=