/core/net/httpConstants.php

Description

PHP2Go Web Development Framework

Copyright (c) 2002-2007 Marcos Pont

LICENSE:

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Constants
HTTP_CRLF = "\r\n" (line 44)

HTTP line end characters

HTTP_DEFAULT_PORT = 80 (line 34)

Default HTTP port

HTTP_DEFAULT_TIMEOUT = 10 (line 39)

Default HTTP connection timeout

HTTP_STATUS_ACCEPTED = 202 (line 69)

The request is accepted for processing, but the processing is not complete

HTTP_STATUS_BAD_GATEWAY = 502 (line 204)

The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request

HTTP_STATUS_BAD_REQUEST = 400 (line 129)

The request could not be understood by the server due to malformed syntax

HTTP_STATUS_CONFLICT = 409 (line 169)

The request could not be completed due to a conflict with the current state of the resource

HTTP_STATUS_CONTINUE = 100 (line 49)

Only a part of the request has been received by the server, but as long as it has not been rejected, the client should continue with the request

HTTP_STATUS_CREATED = 201 (line 64)

The request is complete, and a new resource is created

HTTP_STATUS_FORBIDDEN = 403 (line 139)

The server understood the request, but is refusing to fulfill it

HTTP_STATUS_FOUND = 302 (line 104)

The requested resource resides temporarily under a different URI

HTTP_STATUS_GATEWAY_TIMEOUT = 504 (line 214)

The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server

HTTP_STATUS_GONE = 410 (line 174)

The requested resource is no longer available at the server and no forwarding address is known

HTTP_STATUS_LENGTH_REQUIRED = 411 (line 179)

The server refuses to accept the request without a defined Content-Length

HTTP_STATUS_METHOD_NOT_ALLOWED = 405 (line 149)

The method specified in the Request-Line is not allowed for the resource identified by the Request-URI

HTTP_STATUS_MOVED_PERMANENTLY = 301 (line 99)

The requested resource has been assigned a new permanent URI

HTTP_STATUS_MULTIPLE_CHOICES = 300 (line 94)

The requested resource corresponds to any one of a set of representations, each with its own specific location

HTTP_STATUS_NON_AUTHORITATIVE = 203 (line 74)

The returned metainformation in the entity-header is not the definitive set as available from the origin server

HTTP_STATUS_NOT_ACCEPTABLE = 406 (line 154)

The resource is not acceptable according to the request headers

HTTP_STATUS_NOT_FOUND = 404 (line 144)

The server has not found anything matching the Request-URI

HTTP_STATUS_NOT_IMPLEMENTED = 501 (line 199)

The server does not support the functionality required to fulfill the request

HTTP_STATUS_NOT_MODIFIED = 304 (line 114)

Indicates that the requested resource is not modified

HTTP_STATUS_NO_CONTENT = 204 (line 79)

The server has fulfilled the request but does not need to return an entity-body

HTTP_STATUS_OK = 200 (line 59)

The request is OK

HTTP_STATUS_PARTIAL_CONTENT = 206 (line 89)

The server has fulfilled the partial GET request for the resource

HTTP_STATUS_PROXY_AUTH_REQUIRED = 407 (line 159)

This code is similar to 401, but indicates that the client must first authenticate itself with the proxy

HTTP_STATUS_REQUEST_TIMEOUT = 408 (line 164)

The client did not produce a request within the time that the server was prepared to wait

HTTP_STATUS_REQUEST_TOO_LARGE = 413 (line 184)

The server is refusing to process a request because the request entity is larger than the server is willing or able to process

HTTP_STATUS_RESET_CONTENT = 205 (line 84)

The user agent should reset the document view which caused the request to be sent

HTTP_STATUS_SEE_OTHER = 303 (line 109)

The response to the request can be found under a different URI and should be retrieved using GET

HTTP_STATUS_SERVER_ERROR = 500 (line 194)

The server encountered an unexpected condition which prevented it from fulfilling the request

HTTP_STATUS_SERVICE_UNAVAILABLE = 503 (line 209)

The server is currently unable to handle the request due to a temporary overloading or maintenance of the server

HTTP_STATUS_SWITCHING_PROTOCOLS = 101 (line 54)

The server switches protocol

HTTP_STATUS_TEMPORARY_REDIRECT = 307 (line 124)

The requested resource resides temporarily under a different URI

HTTP_STATUS_UNAUTHORIZED = 401 (line 134)

The request requires user authentication

HTTP_STATUS_URI_TOO_LONG = 414 (line 189)

The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret

HTTP_STATUS_USE_PROXY = 305 (line 119)

The requested resource must be accessed through the proxy given by the Location field

HTTP_STATUS_VERSION_NOT_SUPPORTED = 505 (line 219)

The server does not support, or refuses to support, the HTTP protocol version that was used in the request message

Documentation generated on Sun, 07 Oct 2007 19:26:12 -0300 by phpDocumentor 1.3.2