hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<2l************@uni-berlin.de>...
* pa**@c360it.co.uk (Paul Porthouse) scripsit: I have successfully written an automatic file downloader in VB.NET
using webrequest but I can't find any information anywhere on how to
read in the filename that the server is sending.
Normally the server would specify it using the content-disposition
header, but that is not visible in any of the headers I have found.
The server is definitely sending the filename, as if you download it
using IE, the filename is there.
Maybe I am missing something, but when sending a request for a file, you
already know the name of the file to be downloaded...
Sorry if I haven't described it properly.
The program is for pulling files off remote servers which I have no
control over. It is also automatic, as it will pull many files off the
server over the course of a day. Therefore I don't know the name of
the files, you just call a particular URL with an ID number and if
there is a file for that ID, it will start the download. (The id you
supply is a number from 10000 to 99999).
Everything is working fine in the program, apart from there is no way
to meaningfully name the files (the files are images).
Thanks.
Paul.