Programming C++Builder TIdHTTP.ResponseText and TIdHTTP.ResponseCode meanings in idHTTP Component in Delphi or C Builder

TIdHTTP.ResponseText Specifies the text for a response received from a HTTP server.

property ResponseText: string;

TIdHTTP.ResponseCode Specifies the response code received from a HTTP server.

property ResponseCode: Integer;

Description

ResponseText is a read-only String property that specifies the textual message for a response received from a HTTP server. ResponseText normally contains one of the following values messages for the associated ResponseCode:

 200 - OK
 201 - Created
 202 - Accepted
 203 - Non-authoritative Information
 204 - No Content
 205 - Reset Content
 206 - Partial Content
 301 - Moved Permanently
 302 - Moved Temporarily
 303 - See Other
 304 - Not Modified
 305 - Use Proxy
 400 - Bad Request
 401 - Unauthorized
 403 - Forbidden

 404 - Not Found
 405 - Method not allowed
 406 - Not Acceptable
 407 - Proxy Authentication Required
 408 - Request Timeout
 409 - Conflict
 410 - Gone
 411 - Length Required
 412 - Precondition Failed
 413 - Request Entity To Long
 414 - Request-URI Too Long. 256 Chars max
 415 - Unsupported Media Type

 500 - Internal Server Error
 501 - Not Implemented
 502 - Bad Gateway
 503 - Service Unavailable
 504 - Gateway timeout
 505 - HTTP version not supported


ResponseText is updated in the DoRequest method when a HTTP server response is retrieved. Use ResponseCode to access the numeric value for the HTTP server response.


Add comment


Security code
Refresh

Programming - C++Builder