This is a discussion on Hi within the Bind Users forums, part of the DNS and Related Forums category; Hi guys i have a question about HTTP, i know this list is about DNS but i couldnt find an ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi guys
i have a question about HTTP, i know this list is about DNS but i couldnt find an http list. id be pleased if u could gimme an answer or an http list address HTTP version Statuscode Text crlf Headers crlf crlf Entity body the above is HTTP response format. I need to check the status of the response. i have 2 ways, First; i could read the response until the first space character which is between HTTPversion and status code and then read the following 3 characters and check it as status code Second, I could read the first whole line, and check the first line if it includes any status codes such as (200-399). but i have doubts i cant be sure if the responses will always be in this format, i mean for example may an HTTP server not send this Version part in the beginning of the response?, or may there be changes in this format? what d u think is the best way to check the status of an http response Thanks in advance Servet |