httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean T Allen <s...@usaherbals.com>
Subject Re: [users@httpd] Help, please, configuring httpd to allow downloads
Date Fri, 03 Dec 2004 20:12:01 GMT
Theres an http header for that although I can remember if offhand...

oh yeah part of the content-disposition header...


cnelson@nycap.rr.com wrote:

>>cnelson@nycap.rr.com wrote:
>>
>>    
>>
>>>>does your cgi-skript work as it should? 
>>>>        
>>>>
>>>My CGI is a compiled C program that does:
>>>
>>> int main()
>>> {
>>>   printf("Content-Type: application/octet-stream\n");
>>>   printf("foo bar baz\n");
>>>   exit (0);
>>> }
>>>      
>>>
>>that cgi should be:
>>
>>printf("Content-Type: application/octet-stream\n\n");
>>    
>>
>
>Progress!  Thank you.  That works.  At least in as far as clicking the button in my web
page displays the browser's "What do you want me to do with an octet-stream" dialog and lets
me save it to a file.  A fine start.
>
>However, it saves it with the name of the CGI. I'd really like to transfer thefile.tgz
on the server to a file of the same name on the browser's system.
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>


Mime
View raw message