cURL / Mailing Lists / curl-library / Single Mail


Re: How to get the original filename of a downloading file.

From: Daniel Stenberg <>
Date: Thu, 10 Oct 2002 09:13:40 +0200 (MET DST)

On Thu, 10 Oct 2002, [gb2312] 王 臻 wrote:

> I found some server use asp and jsp, and some URIs are indicated as
> When I send a request to that URI, it
> returns a file. But how do I get the filename? Thanks in advance.

There is no "original filename" associated with a URL, so there's no standard
way of getting it.

 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2002-10-10