php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9075 CGI/ file download problem with URL http://x/myprog.php/filename
Submitted: 2001-02-02 10:11 UTC Modified: 2001-05-27 23:26 UTC
From: michel dot jansens at ulb dot ac dot be Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.4pl1 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michel dot jansens at ulb dot ac dot be
New email:
PHP Version: OS:

 

 [2001-02-02 10:11 UTC] michel dot jansens at ulb dot ac dot be
To give a default filename for dynamic file download I use the url: http://mysrv.com/myscript.php/<filename>
where <filename> is the filename on which the result of myscript.php will be saved
The /<filename> is usually forgotten by php and the brozsers uses it as default filename for the download.
This works well with Apache1.3.x and the DSO module version of php4.0.4.pl1 but not with the CGI version

I tryed compiling php with and without --force-cgi-redirect

Thanks

rem myscript.php is of the form:
<?
 $res = getattach($mbox,$mailuid,$atpos,$attachment,$type,$subtype);
 if($res) $head = sprintf("Content-Type: %s/%s\n\r\n",$type,$subtype);
 header($head);
 print $attachment;
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 23:26 UTC] sniper@php.net
Reopen if this happens also with soon to be released PHP 4.0.6.

--Jani

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 14:05:54 2022 UTC