Last active
December 20, 2015 02:39
-
-
Save evert/6058362 to your computer and use it in GitHub Desktop.
CURLOPT_POSTREDIR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- original.xml 2013-07-23 00:42:13.000000000 +0200 | |
+++ next.xml 2013-07-23 00:37:10.000000000 +0200 | |
@@ -580,6 +580,26 @@ | |
</entry> | |
</row> | |
<row> | |
+ <entry valign="top"><constant>CURLOPT_POSTREDIR</constant></entry> | |
+ <entry valign="top"> | |
+ <para> | |
+ Set the behavior for following redirects with | |
+ <constant>CURLOPT_FOLLOWLOCATION</constant>. By default a | |
+ redirect will be followed with a GET request, regardless of the | |
+ original HTTP request type. | |
+ </para> | |
+ <para> | |
+ This field is a bitmask. The two available settings are: 1 to | |
+ follow a redirect with the same request type for 301 redirect, | |
+ and 2 to follow a redirect with the same request type for 302 | |
+ redirects. | |
+ </para> | |
+ </entry> | |
+ <entry valign="top"> | |
+ Added in cURL 7.19.1. Available since PHP 5.3.2. | |
+ </entry> | |
+ </row> | |
+ <row> | |
<entry valign="top"><constant>CURLOPT_PROTOCOLS</constant></entry> | |
<entry valign="top"> | |
<para> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment