HTTP Basics

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at HTTP Basics.

When writing an internet application, you often examine and add to the information in HTTP header. Return codes indicate the success or failure of the requested event. Several common return codes are listed in the following table.

Return CodeMeaning
200URL located, transmission follows
400Unintelligible request
404Requested URL not found
405Server does not support requested method
500Unknown server error
503Service unavailable

The HTTP responses are grouped as shown in the following table.

GroupMeaning
200–299Success
300–399Information
400–499Request error
500–599Server error

The Hypertext Transfer Protocol (HTTP) is an application-level protocol for hypermedia information systems. For more information about HTTP, and how Web browsers and servers communicate, see the Hypertext Transfer Protocol (HTTP) specification:

http://www.w3.org/pub/WWW/Protocols/

MFC Internet Programming Basics

Show: