Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » HttpRequest ignores server errors
Re: HttpRequest ignores server errors [message #48743 is a reply to message #48742] Fri, 08 September 2017 08:51 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
According to the docs:
bool IsFailure() const
Request has failed (it can be either due to connection errors or because the request did not ended with 2xx response code).


Return code was 404 and IsFailure() returned false, so at least in this case there is something wrong.

I've added IsSuccess() to the dump:
08.09.2017 06:49:08 HTTP status code: 404
08.09.2017 06:49:08 Starting status 8 'Receiving content', url: google.com
08.09.2017 06:49:08 HTTP Execute: Receiving content
08.09.2017 06:49:08 HTTP reading body 1576
08.09.2017 06:49:08 HTTP Out 1576
08.09.2017 06:49:08 conn.IsFailure() = false
08.09.2017 06:49:08 conn.IsSuccess() = false
08.09.2017 06:49:08 conn.GetStatusCode() = 404
08.09.2017 06:49:08 conn.GetErrorDesc() = 
08.09.2017 06:49:08 conn.IsError() = false

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Code before Thread.Run() nor executed
Next Topic: how to broadcast in AsyncWebSocket?
Goto Forum:
  


Current Time: Fri Apr 26 11:53:40 CEST 2024

Total time taken to generate the page: 0.06000 seconds