Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 7330

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Predefined Constants</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="http.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="http.request.options.html">Request Options</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="http.constants" class="appendix">
  <h1>Predefined Constants</h1>

  <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
  <dl>

   <strong class="title">Constants usable with  <span class="function"><a href="function.http-support.html" class="function">http_support()</a></span></strong>
   <dt id="constant.http-support">
    <span class="term">
     <strong><code>HTTP_SUPPORT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      querying for this constant will always return <strong><code>TRUE</code></strong>
     </span>
    </dd>

   </dt>

   <dt id="constant.http-support-requests">
    <span class="term">
     <strong><code>HTTP_SUPPORT_REQUESTS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      whether support to issue HTTP requests is given, ie. libcurl support was compiled in
     </span>
    </dd>

   </dt>

   <dt id="constant.http-support-magicmime">
    <span class="term">
     <strong><code>HTTP_SUPPORT_MAGICMIME</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      whether support to guess the Content-Type of HTTP messages is given, ie. libmagic support was compiled in
     </span>
    </dd>

   </dt>

   <dt id="constant.http-support-encodings">
    <span class="term">
     <strong><code>HTTP_SUPPORT_ENCODINGS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      whether support for zlib encodings is given, ie. libz support was compiled in
     </span>
    </dd>

   </dt>

   <dt id="constant.http-support-sslrequests">
    <span class="term">
     <strong><code>HTTP_SUPPORT_SSLREQUESTS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      whether support to issue HTTP requests over SSL is given, ie. linked libcurl was built with SSL support
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants usable with  <span class="function"><a href="function.http-parse-params.html" class="function">http_parse_params()</a></span></strong>
   <dt id="constant.http-params-allow-comma">
    <span class="term">
     <strong><code>HTTP_PARAMS_ALLOW_COMMA</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      allow commands additionally to semicolons as separator
     </span>
    </dd>

   </dt>

   <dt id="constant.http-params-allow-failure">
    <span class="term">
     <strong><code>HTTP_PARAMS_ALLOW_FAILURE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      continue parsing after an error occurred
     </span>
    </dd>

   </dt>

   <dt id="constant.http-params-raise-error">
    <span class="term">
     <strong><code>HTTP_PARAMS_RAISE_ERROR</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      raise PHP warnings on parse errors
     </span>
    </dd>

   </dt>

   <dt id="constant.http-params-default">
    <span class="term">
     <strong><code>HTTP_PARAMS_DEFAULT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      all three values above, bitwise or&#039;ed
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants usable with  <span class="function"><a href="function.http-parse-cookie.html" class="function">http_parse_cookie()</a></span> and its return value</strong>
   <dt id="constant.http-cookie-parse-raw">
    <span class="term">
     <strong><code>HTTP_COOKIE_PARSE_RAW</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      don&#039;t urldecode values
     </span>
    </dd>

   </dt>

   <dt id="constant.http-cookie-secure">
    <span class="term">
     <strong><code>HTTP_COOKIE_SECURE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      whether &quot;secure&quot; was found in the cookie&#039;s parameters list
     </span>
    </dd>

   </dt>

   <dt id="constant.http-cookie-httponly">
    <span class="term">
     <strong><code>HTTP_COOKIE_HTTPONLY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      whether &quot;httpOnly&quot; was found in the cookie&#039;s parameter list
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants usable with  <span class="function"><a href="function.http-deflate.html" class="function">http_deflate()</a></span> and <a href="class.httpdeflatestream.html" class="classname">HttpDeflateStream</a></strong>
   <dt id="constant.http-deflate-level-def">
    <span class="term">
     <strong><code>HTTP_DEFLATE_LEVEL_DEF</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-level-min">
    <span class="term">
     <strong><code>HTTP_DEFLATE_LEVEL_MIN</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-level-max">
    <span class="term">
     <strong><code>HTTP_DEFLATE_LEVEL_MAX</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-type-zlib">
    <span class="term">
     <strong><code>HTTP_DEFLATE_TYPE_ZLIB</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-type-gzip">
    <span class="term">
     <strong><code>HTTP_DEFLATE_TYPE_GZIP</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-type-raw">
    <span class="term">
     <strong><code>HTTP_DEFLATE_TYPE_RAW</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-strategy-def">
    <span class="term">
     <strong><code>HTTP_DEFLATE_STRATEGY_DEF</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-strategy-filt">
    <span class="term">
     <strong><code>HTTP_DEFLATE_STRATEGY_FILT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-strategy-huff">
    <span class="term">
     <strong><code>HTTP_DEFLATE_STRATEGY_HUFF</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-strategy-rle">
    <span class="term">
     <strong><code>HTTP_DEFLATE_STRATEGY_RLE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-deflate-strategy-fixed">
    <span class="term">
     <strong><code>HTTP_DEFLATE_STRATEGY_FIXED</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants usable with <a href="class.httpdeflatestream.html" class="classname">HttpDeflateStream</a> and <a href="class.httpinflatestream.html" class="classname">HttpInflateStream</a></strong>
   <dt id="constant.http-encoding-stream-flush-none">
    <span class="term">
     <strong><code>HTTP_ENCODING_STREAM_FLUSH_NONE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      don&#039;t flush
     </span>
    </dd>

   </dt>

   <dt id="constant.http-encoding-stream-flush-sync">
    <span class="term">
     <strong><code>HTTP_ENCODING_STREAM_FLUSH_SYNC</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      synchronized flush only
     </span>
    </dd>

   </dt>

   <dt id="constant.http-encoding-stream-flush-full">
    <span class="term">
     <strong><code>HTTP_ENCODING_STREAM_FLUSH_FULL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      full data flush
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants used for error reporting and Exceptions</strong>
   <dt id="constant.http-e-runtime">
    <span class="term">
     <strong><code>HTTP_E_RUNTIME</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      runtime error
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-invalid-param">
    <span class="term">
     <strong><code>HTTP_E_INVALID_PARAM</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      an invalid parameter was passed
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-header">
    <span class="term">
     <strong><code>HTTP_E_HEADER</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      header() or similar operation failed
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-malformed-headers">
    <span class="term">
     <strong><code>HTTP_E_MALFORMED_HEADERS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      HTTP header parse error
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-request-method">
    <span class="term">
     <strong><code>HTTP_E_REQUEST_METHOD</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      unknown/invalid request method
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-message-type">
    <span class="term">
     <strong><code>HTTP_E_MESSAGE_TYPE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      with operation incompatible message type
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-encoding">
    <span class="term">
     <strong><code>HTTP_E_ENCODING</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      encoding/decoding error
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-request">
    <span class="term">
     <strong><code>HTTP_E_REQUEST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      request failure
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-request-pool">
    <span class="term">
     <strong><code>HTTP_E_REQUEST_POOL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      request pool failure
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-socket">
    <span class="term">
     <strong><code>HTTP_E_SOCKET</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      socket exception
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-response">
    <span class="term">
     <strong><code>HTTP_E_RESPONSE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      response failure
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-url">
    <span class="term">
     <strong><code>HTTP_E_URL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      invalid URL
     </span>
    </dd>

   </dt>

   <dt id="constant.http-e-querystring">
    <span class="term">
     <strong><code>HTTP_E_QUERYSTRING</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      querystring operation failure
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants usable with <a href="class.httpmessage.html" class="classname">HttpMessage</a></strong>
   <dt id="constant.http-msg-none">
    <span class="term">
     <strong><code>HTTP_MSG_NONE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      the message is of no specific type
     </span>
    </dd>

   </dt>

   <dt id="constant.http-msg-request">
    <span class="term">
     <strong><code>HTTP_MSG_REQUEST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      request style message
     </span>
    </dd>

   </dt>

   <dt id="constant.http-msg-response">
    <span class="term">
     <strong><code>HTTP_MSG_RESPONSE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      response style message
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants usable with <a href="class.httpquerystring.html" class="classname">HttpQueryString</a></strong>
   <dt id="constant.http-querystring-type-bool">
    <span class="term">
     <strong><code>HTTP_QUERYSTRING_TYPE_BOOL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-querystring-type-int">
    <span class="term">
     <strong><code>HTTP_QUERYSTRING_TYPE_INT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-querystring-type-float">
    <span class="term">
     <strong><code>HTTP_QUERYSTRING_TYPE_FLOAT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-querystring-type-string">
    <span class="term">
     <strong><code>HTTP_QUERYSTRING_TYPE_STRING</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-querystring-type-array">
    <span class="term">
     <strong><code>HTTP_QUERYSTRING_TYPE_ARRAY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-querystring-type-object">
    <span class="term">
     <strong><code>HTTP_QUERYSTRING_TYPE_OBJECT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants used for the <em>httpauthtype</em> <a href="http.request.options.html" class="link">request option</a></strong>
   <dt id="constant.http-auth-basic">
    <span class="term">
     <strong><code>HTTP_AUTH_BASIC</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use &quot;basic&quot; authentication
     </span>
    </dd>

   </dt>

   <dt id="constant.http-auth-digest">
    <span class="term">
     <strong><code>HTTP_AUTH_DIGEST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use &quot;digest&quot; authentication
     </span>
    </dd>

   </dt>

   <dt id="constant.http-auth-ntlm">
    <span class="term">
     <strong><code>HTTP_AUTH_NTLM</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use &quot;NTLM&quot; authentication
     </span>
    </dd>

   </dt>

   <dt id="constant.http-auth-gssneg">
    <span class="term">
     <strong><code>HTTP_AUTH_GSSNEG</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use &quot;GSS-NEGOTIATE&quot; authentication
     </span>
    </dd>

   </dt>

   <dt id="constant.http-auth-any">
    <span class="term">
     <strong><code>HTTP_AUTH_ANY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      try any authentication scheme
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants used for the HTTP <em>protocol</em> version <a href="http.request.options.html" class="link">request option</a></strong>
   <dt id="constant.http-version-any">
    <span class="term">
     <strong><code>HTTP_VERSION_ANY</code></strong> 
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      no specific HTTP protocol version
     </span>
    </dd>

   </dt>

   <dt id="constant.http-version-1-0">
    <span class="term">
     <strong><code>HTTP_VERSION_1_0</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      HTTP version 1.0
     </span>
    </dd>

   </dt>

   <dt id="constant.http-version-1-1">
    <span class="term">
     <strong><code>HTTP_VERSION_1_1</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      HTTP version 1.1
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants used for the SSL <em>protocol</em> type and version <a href="http.request.options.html" class="link">request option</a></strong>
   <dt id="constant.http-ssl-version-any">
    <span class="term">
     <strong><code>HTTP_SSL_VERSION_ANY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      no specific SSL protocol version
     </span>
    </dd>

   </dt>

   <dt id="constant.http-ssl-version-tlsv1">
    <span class="term">
     <strong><code>HTTP_SSL_VERSION_TLSv1</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use TLSv1 only
     </span>
    </dd>

   </dt>

   <dt id="constant.http-ssl-version-sslv3">
    <span class="term">
     <strong><code>HTTP_SSL_VERSION_SSLv3</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use SSLv3 only
     </span>
    </dd>

   </dt>

   <dt id="constant.http-ssl-version-sslv2">
    <span class="term">
     <strong><code>HTTP_SSL_VERSION_SSLv2</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use SSLv2 only
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants used for the <em>proxytype</em> <a href="http.request.options.html" class="link">request option</a></strong>
   <dt id="constant.http-proxy-socks4">
    <span class="term">
     <strong><code>HTTP_PROXY_SOCKS4</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      the proxy is a SOCKS4 type proxy
     </span>
    </dd>

   </dt>

   <dt id="constant.http-proxy-socks5">
    <span class="term">
     <strong><code>HTTP_PROXY_SOCKS5</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      the proxy is a SOCKS5 type proxy
     </span>
    </dd>

   </dt>

   <dt id="constant.http-proxy-http">
    <span class="term">
     <strong><code>HTTP_PROXY_HTTP</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      standard HTTP proxy
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants used for the <em>ipresolve</em> <a href="http.request.options.html" class="link">request option</a></strong>
   <dt id="constant.http-ipresolve-v4">
    <span class="term">
     <strong><code>HTTP_IPRESOLVE_V4</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use IPv4 only for name lookups
     </span>
    </dd>

   </dt>

   <dt id="constant.http-ipresolve-v6">
    <span class="term">
     <strong><code>HTTP_IPRESOLVE_V6</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use IPv6 only for name lookups
     </span>
    </dd>

   </dt>

   <dt id="constant.http-ipresolve-any">
    <span class="term">
     <strong><code>HTTP_IPRESOLVE_ANY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      use any IP mechanism only for name lookups
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Predefined HTTP request method constants</strong>
   <dt id="constant.http-meth-get">
    <span class="term">
     <strong><code>HTTP_METH_GET</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-head">
    <span class="term">
     <strong><code>HTTP_METH_HEAD</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-post">
    <span class="term">
     <strong><code>HTTP_METH_POST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-put">
    <span class="term">
     <strong><code>HTTP_METH_PUT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-delete">
    <span class="term">
     <strong><code>HTTP_METH_DELETE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-options">
    <span class="term">
     <strong><code>HTTP_METH_OPTIONS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-trace">
    <span class="term">
     <strong><code>HTTP_METH_TRACE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-connect">
    <span class="term">
     <strong><code>HTTP_METH_CONNECT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-propfind">
    <span class="term">
     <strong><code>HTTP_METH_PROPFIND</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-proppatch">
    <span class="term">
     <strong><code>HTTP_METH_PROPPATCH</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-mkcol">
    <span class="term">
     <strong><code>HTTP_METH_MKCOL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-copy">
    <span class="term">
     <strong><code>HTTP_METH_COPY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-move">
    <span class="term">
     <strong><code>HTTP_METH_MOVE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-lock">
    <span class="term">
     <strong><code>HTTP_METH_LOCK</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-unlock">
    <span class="term">
     <strong><code>HTTP_METH_UNLOCK</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-version-control">
    <span class="term">
     <strong><code>HTTP_METH_VERSION_CONTROL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-report">
    <span class="term">
     <strong><code>HTTP_METH_REPORT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-checkout">
    <span class="term">
     <strong><code>HTTP_METH_CHECKOUT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-checkin">
    <span class="term">
     <strong><code>HTTP_METH_CHECKIN</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-uncheckout">
    <span class="term">
     <strong><code>HTTP_METH_UNCHECKOUT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-mkworkspace">
    <span class="term">
     <strong><code>HTTP_METH_MKWORKSPACE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-update">
    <span class="term">
     <strong><code>HTTP_METH_UPDATE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-label">
    <span class="term">
     <strong><code>HTTP_METH_LABEL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-merge">
    <span class="term">
     <strong><code>HTTP_METH_MERGE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-baseline-control">
    <span class="term">
     <strong><code>HTTP_METH_BASELINE_CONTROL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-mkactivity">
    <span class="term">
     <strong><code>HTTP_METH_MKACTIVITY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

   <dt id="constant.http-meth-acl">
    <span class="term">
     <strong><code>HTTP_METH_ACL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants usable with  <span class="function"><a href="function.http-redirect.html" class="function">http_redirect()</a></span></strong>
   <dt id="constant.http-redirect">
    <span class="term">
     <strong><code>HTTP_REDIRECT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      guess applicable redirect method
     </span>
    </dd>

   </dt>

   <dt id="constant.http-redirect-perm">
    <span class="term">
     <strong><code>HTTP_REDIRECT_PERM</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      permanent redirect (<em>301 Moved permanently</em>)
     </span>
    </dd>

   </dt>

   <dt id="constant.http-redirect-found">
    <span class="term">
     <strong><code>HTTP_REDIRECT_FOUND</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      standard redirect (<em>302 Found</em>)
     </span>
     <blockquote class="note"><p><strong class="note">Note</strong>: 
      <span class="simpara">
       RFC 1945 and RFC 2068 specify that the client is not allowed
       to change the method on the redirected request.  However, most
       existing user agent implementations treat 302 as if it were a 303
       response, performing a GET on the Location field-value regardless
       of the original request method. The status codes 303 and 307 have
       been added for servers that wish to make unambiguously clear which
       kind of reaction is expected of the client.
      </span>
     </p></blockquote>
    </dd>

   </dt>

   <dt id="constant.http-redirect-post">
    <span class="term">
     <strong><code>HTTP_REDIRECT_POST</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      redirect applicable to POST requests (<em>303 See other</em>)
     </span>
    </dd>

   </dt>

   <dt id="constant.http-redirect-proxy">
    <span class="term">
     <strong><code>HTTP_REDIRECT_PROXY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      proxy redirect (<em>305 Use proxy</em>)
     </span>
    </dd>

   </dt>

   <dt id="constant.http-redirect-temp">
    <span class="term">
     <strong><code>HTTP_REDIRECT_TEMP</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      temporary redirect (<em>307 Temporary Redirect</em>)
     </span>
    </dd>

   </dt>

  </dl>

  <dl>

   <strong class="title">Constants usable with  <span class="function"><a href="function.http-build-url.html" class="function">http_build_url()</a></span></strong>
   <dt id="constant.http-url-replace">
    <span class="term">
     <strong><code>HTTP_URL_REPLACE</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      replace every part of the first URL when there&#039;s one of the second URL
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-join-path">
    <span class="term">
     <strong><code>HTTP_URL_JOIN_PATH</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      join relative paths
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-join-query">
    <span class="term">
     <strong><code>HTTP_URL_JOIN_QUERY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      join query strings
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-strip-user">
    <span class="term">
     <strong><code>HTTP_URL_STRIP_USER</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      strip any user authentication information
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-strip-pass">
    <span class="term">
     <strong><code>HTTP_URL_STRIP_PASS</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      strip any password authentication information
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-strip-auth">
    <span class="term">
     <strong><code>HTTP_URL_STRIP_AUTH</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      strip any authentication information
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-strip-port">
    <span class="term">
     <strong><code>HTTP_URL_STRIP_PORT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      strip explicit port numbers
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-strip-path">
    <span class="term">
     <strong><code>HTTP_URL_STRIP_PATH</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      strip complete path
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-strip-query">
    <span class="term">
     <strong><code>HTTP_URL_STRIP_QUERY</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      strip query string
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-strip-fragment">
    <span class="term">
     <strong><code>HTTP_URL_STRIP_FRAGMENT</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      strip any fragments (#identifier)
     </span>
    </dd>

   </dt>

   <dt id="constant.http-url-strip-all">
    <span class="term">
     <strong><code>HTTP_URL_STRIP_ALL</code></strong>
      (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </span>
    <dd>

     <span class="simpara">
      strip anything but scheme and host
     </span>
    </dd>

   </dt>

  </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="http.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="http.request.options.html">Request Options</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>