For help, php could not crawl the webpage. I asked a few people to solve the problem. This post was last edited by dz215136304 at 11:35:47.
The url must be the url in the following code. after testing, if the parameter after q is captured with
This post was last edited by dz215136304 on 2013-06-11 11:35:47
The URL must be the following code in the URL, tested, when fetching, if the parameter after Q with a space, he will automatically convert "&" to "&", resulting in data can not be
Http response status code and response status code
From: http://hi.baidu.com/starsecond/blog/item/de75458a3cb1b51ac9fc7a6a.html
========================================================== ==========================================
100
Today, when you use the file_get_contents function to obtain a function of a remote machine, the HTTPrequestfailed prompt is displayed! HTTP1.1505HTTPVersionNotSupport... today, when you use the file_get_contents function to obtain a function of a
Status Code
reason Phrases
representative meaning
HTTP version
Message response
100
ContinueContinue to
The client should continue to send the request. This temporary response is used to
1. Telnet Google.com 802. Press "Ctrl +]" in the Telnet window, enter the "set localecho" command, and press the Enter key twice in a row. 3. Enter
Get, HTTP, 1.1
HOST: www.sohu.com/* is not required */
/* In addition, you can use the webpage data
When I debugged the code yesterday, I used HTTP to request an image. The returned result is as follows:
HTTP/1.1 505 HTTP Version Not Supported
Server: APACHE-Coyote/1.1
Date: Wed, 27 Oct 2010 05:13:08 GMT
Connection: Close
Google Now. Most
In the actual application of the site construction, prone to a lot of small mistakes, like MySQL was optimized not in place, the impact of the overall site browsing effect, in fact, the site's regular HTTP status code performance is the same, Google
The HTTP status Code (response code) is used to indicate whether the HTTP request has completed successfully. The HTTP response type is divided into five categories: message response, successful response, redirect, client error, server-side
as a program developer, you should know the meaning of the HTTP status returned by some servers, and only make sure that the status code one by one is clear and that the various problems encountered in the work can be handled with ease. So let's
Network Working Group R. fieldingrequest for comments: 2616 UC runtime: 2068 J. gettyscategory: Standards track Compaq/w3cj. mogulcompaqh. frystykw3c/mitl. scheduler. leachmicrosoftt. Berners-LeeW3C/mitjune 1999
Hypertext Transfer Protocol --
Http return status code summary, return Status Summary
400 Invalid syntax. syntax problems
401 Access denied. Access denied
402 Payment required. Must be complete
403 Request forbidden. The Request is forbidden.
404 Object not found. The Object is
Android http code response code status code, androidcode
Some common status codes are:
200-the server returns the webpage successfully
404-the requested webpage does not exist
503-server timeout
The complete list of HTTP status codes is
400 Invalid Syntax. Syntax problems
401 Access denied. Access denied
402 payment required. Must be complete
403 request forbidden. The request is forbidden.
404 object not found. The object is not found.
405 method is not allowed. The method is not
HTTP status Code
editing
The HTTP status code is a 3-bit numeric code that represents the HTTP response status of the Web server. It is defined by the RFC 2616 specification and is extended by RFC 2518, RFC 2817, RFC 2295, RFC 2774,
Some common HTTP status codes are:200– server successfully returned to Web page404– The requested page does not exist503– Service Not availableCommon HTTP status Code Daquan1XX (Temporary response)A status code that represents a temporary response
As an Internet developer, the meaning of the HTTP status returned by some servers must be well-understood, and only these status code one by one can be figured out, and all the problems encountered in the work are handled with ease. Well, let's look
1XX Information Class status code100-continue the initial request has been accepted, the customer should continue to send the remainder of the request. (HTTP 1.1 new)101-switching Protocols Server translates the client's request to another protocol (
2 Opening (successful request) indicates that the status code of the request was successfully processed.200 (success) The server has successfully processed the request. Typically, this indicates that the server provided the requested Web page.201
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.