header("Location: ...) function

From: Date: Sun, 14 Jan 2001 00:21:02 +0000
Subject: header("Location: ...) function
Groups: php.install 
Request: Send a blank email to php-install+get-1600@lists.php.net to get a copy of this message
Hi, We are using the latest php 4.0.4pl1 on apache 1.3.14. I have three files: pja.html: <html> <head> <title>test page 1</title> </head> <body> <form name=inputform action=pjb.html method=post> <textarea rows="15" cols="50" name="cont_body"></textarea><p> <input type=submit> </form> </body> </html> pjb.html: <? header("Location: http://www.gpc.peachnet.edu/~douglas/t/pjc.html?cont_body=".urlencode($cont_ body)); exit; ?> pjc.html: html> <head> <title>test page 2</title> </head> <body> <? printf("(%s)<br>\n",$cont_body); ?> </body> </html> When I fill in a large amount of text in count_body in pja.html, under IE 5.5, I just get an error page, under Netscape, I get: Request-URI Too Large The requested URL's length exceeds the capacity limit for this server. request failed: URI too long Now, we have -DDEFAULT_LIMIT_REQUEST_FIELDSIZE=8388608 (8meg) defined in the make, and in httpd.conf we have: LimitRequestFieldsize 8388608 I doubled checked that the define is being carried through all the way through all the C php and apache compilations. Also, when I put in a small amount of text in count_body, it works ok. Does anyone have any ideas why fails? Thanks for any help, Cheers, Douglas

« previous php.install (#1600) next »