Req #67090 [Opn->Fbk]: 16953 post data variable maximum

From: Date: Wed, 16 Apr 2014 20:56:52 +0000
Subject: Req #67090 [Opn->Fbk]: 16953 post data variable maximum
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185305@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67090&edit=1 ID: 67090 Updated by: aharvey@php.net Reported by: trevor at ridgebizdev dot com Summary: 16953 post data variable maximum -Status: Open +Status: Feedback Type: Feature/Change Request Package: HTTP related Operating System: Windows7 PHP Version: 5.4.27 Block user comment: N Private report: N New Comment: Are you sure this works at all (from outside PHP)? This sounds and looks like a restriction on the www.budgettruck.com side in terms of the length of the cookie or POST data they'll accept, rather than a PHP restriction — the three methods you've described don't share any code, so they shouldn't all fail in the same way unless it's a server side problem. Previous Comments: ------------------------------------------------------------------------ [2014-04-16 20:40:31] trevor at ridgebizdev dot com 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&amp;error=An%20unexpected%20error%20has%20occurred&amp;content=0">here</a>.</h2> </body></html> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67090&edit=1

« previous php.bugs (#185305) next »