Req #67090 [NEW]: 16953 post data variable maximum
| From: | trevor at ridgebizdev dot com | Date: | Wed, 16 Apr 2014 20:40:32 +0000 |
| Subject: | Req #67090 [NEW]: 16953 post data variable maximum | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185302@lists.php.net to get a copy of this message | ||
From: trevor at ridgebizdev dot com
Operating system: Windows7
PHP version: 5.4.27
Package: HTTP related
Bug Type: Feature/Change Request
Bug description:16953 post data variable maximum
Description:
------------
Based on the nature of this problem, it's ugly to reduce to a single
line of code. When ViewState (a session variable) is over 20k, the PHP
request languages (cURL, PECL_HTTP, and file_get_contents()) all fail.
Test script:
---------------
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_URL,
"https://www.budgettruck.com/Pick-Up-Location.aspx");
curl_setopt($ch, CURLOPT_REFERER,
"https://www.budgettruck.com/Pick-Up-Location.aspx");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata4);
curl_setopt($ch, CURLOPT_COOKIE, $cookie_str);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 55);
curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header_r);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla 5.0");
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_PROXY, "localhost");
curl_setopt($ch, CURLOPT_PROXYPORT,"8888");
$response4 = curl_exec($ch);
Expected result:
----------------
$response4 should be the html sourcecode of the "Drop Off Location
Page".
Actual result:
--------------
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html; charset=utf-8
Location:
https://www.budgettruck.com/Default.aspx?tabid=54&error=An%20unexpected%20error%20has%20occurred&content=0
X-UA-Compatible: IE=edge
X-Powered-By: ASP.NET
Content-Length: 231
Expires: Wed, 16 Apr 2014 18:36:12 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 16 Apr 2014 18:36:12 GMT
Connection: keep-alive
Set-Cookie: language=en-US; path=/; secure; HttpOnly
Set-Cookie: datacenter=ptc
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href="https://www.budgettruck.com/Default.aspx?tabid=54&error=An%20unexpected%20error%20has%20occurred&content=0">here</a>.</h2>
</body></html>
--
Edit bug report at https://bugs.php.net/bug.php?id=67090&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67090&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67090&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67090&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67090&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67090&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67090&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67090&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67090&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67090&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67090&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67090&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67090&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67090&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67090&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67090&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67090&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67090&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67090&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67090&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67090&r=mysqlcfg