I'm having problems with perform (file upload) and Netscape 4(.77 on macos 9): after hitting "upload", netscape displays "The document containted no data. Try again later, or contact the server administrator"; after clicking "OK", the redirect is executed and the target page displayed as it should.
Does Netscape 4 not allow redirect after POST or file uploads?
More detail below.
Current Perform from cpan.
Anyone ever seen this?
Thanks, Christian.
fotos/upload.xsp: <?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet href="." type="application/x-xsp"?> <?xml-stylesheet href="/xsl/htmlperform.xsl" type="text/xsl"?> <xsp:page xmlns:xsp="http://apache.org/xsp/core/v1" xmlns:param="http://axkit.org/NS/xsp/param/v1" xmlns:f="http://axkit.org/NS/xsp/perform/v1" xmlns:e="http://axkit.org/NS/xsp/exception/v1" > <xsp:logic> sub submit_upload { "/fotos/uploadclose.html" } sub validate_foto { } </xsp:logic> <html> <head> <title>foto upload form</title> </head> <body> <h2>foto upload form</h2> <f:form name="upload"> <input type="hidden" name="sessionkey"> <xsp:attribute name="value"><param:sessionkey/></xsp:attribute> </input> <p>Pls choose file: <f:file-upload name="foto"/></p> <p> <f:cancel name="cancel" value="Cancel" goto="/fotos/uploadclose.html"/> <f:submit name="upload" value="upload" goto="/fotos/uploadclose.html"/> </p> </f:form> </body> </html> </xsp:page>
fotos/uploadclose.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>closing window</title>
</head>
<body>
<h1>closing window...</h1>
</body>
</html>
decoded tcpdump output from a POST without having choosen a file, with netscape 4.77 macos9:
netscape: ========== POST /fotos/upload.html HTTP/1.0 Referer: http://theatest.mine.nu/fotos/upload.html Connection: Keep-Alive User-Agent: Mozilla/4.77 (Macintosh; U; PPC) Host: theatest.mine.nu Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* Accept-Encoding: gzip Accept-Language: en Accept-Charset: iso-8859-1,*,utf-8 Content-type: multipart/form-data; boundary=---------------------------24981287017201Content-Length: 466
-----------------------------24981287017201 Content-Disposition: form-data; name="__submitting_upload"
1 -----------------------------24981287017201 Content-Disposition: form-data; name="sessionkey"
-----------------------------24981287017201 Content-Disposition: form-data; name="foto"; filename=""
-----------------------------24981287017201 Content-Disposition: form-data; name="upload"
upload -----------------------------24981287017201--
server: ======= HTTP/1.1 200 OK Date: Wed, 05 Nov 2003 14:44:43 GMT Server: Apache/1.3.26 (Unix) mod_ssl/2.8.9 OpenSSL/0.9.6c mod_deflate/1.0.15 mod_accel/1.0.23 Pragma: no-cache Cache-control: no-cache Refresh: 0; url=http://theatest.mine.nu/fotos/uploadclose.html Content-Type: text/html; charset=iso-8859-1 Expires: Wed, 05 Nov 2003 14:44:43 GMT Connection: close
(2 zeilenumbr�cke am ende)
netscape: ========= GET /fotos/uploadclose.html HTTP/1.0 Referer: http://theatest.mine.nu/fotos/upload.html Connection: Keep-Alive User-Agent: Mozilla/4.77 (Macintosh; U; PPC) Pragma: no-cache Host: theatest.mine.nu Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* Accept-Encoding: gzip Accept-Language: en Accept-Charset: iso-8859-1,*,utf-8
server: ======= HTTP/1.1 200 OK Date: Wed, 05 Nov 2003 14:44:47 GMT Server: Apache/1.3.26 (Unix) mod_ssl/2.8.9 OpenSSL/0.9.6c mod_deflate/1.0.15 mod_accel/1.0.23 Last-Modified: Sun, 12 Oct 2003 05:07:15 GMT ETag: "1309a-b9-3f88e183" Accept-Ranges: bytes Content-Length: 185 Content-Type: text/html; charset=iso-8859-1 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>closing window</title>
</head> <body>
<h1>closing window...</h1>
</body> </html>
(end of session)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
