Download of a file question

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
S

Samuel Shulman

Hi everyone,

I would like to implement the following functionality:

User to enter username and password programmatically using the POST method

Once the user is verified, start a download process of a file

Is that possible and how?

Thank you
Samuel
 
Samuel said:
Hi everyone,

I would like to implement the following functionality:

User to enter username and password programmatically using the POST
method
Once the user is verified, start a download process of a file

Is that possible and how?

Thank you
Samuel

I guess you already know how to verify the user.

Then, just use this line of code:
Response.Redirect("myfile.exe")
 
But that I assume will require the user to accept the download, I need a
method that the program will download the file and then read it (to
triggered by a timer)

Thank you,
Samuel
 
But that I assume will require the user to accept the download,
Obviously.

I need a method that the program will download the file and then read it
(to triggered by a timer)

You need to take a step back and think for a minute...

Imagine the havoc that hackers could cause on the internet if browsers had
such slack security that they allowed websites to download files to client
machines with no user confirmation...
 
I understand your point so long that the download is initiated by the server

I am talking about a program that will download a file, but prior to the
download I want to verify the user.

Thank you,
Samuel
 
I understand your point so long that the download is initiated by the
server

I am talking about a program that will download a file, but prior to the
download I want to verify the user.

What's the difference...? You want a "program that will download a file" -
irrespective of whether you "verify the user" (whatever that means) first,
you're still looking for a "program that will download a file"...

Not gonna happen...

However, having said that...

a) if your web app is running in an entirely enclosed intranet
b) if you have total control over the server
c) if you have total control over the client machine(s)
d) if Microsoft Internet Explorer is installed on the client machine(s)

you could write an ActiveX control which will do what you want. I have done
this once before for a client, even though I advised them as strongly as I
could that this really was a very bad solution... Nevertheless, he who pays
the piper calls the tune (as we say), so I wrote it for them, after getting
them to sign a disclosure saying that I could not be held responsible for
any subsequent misuse of the control etc...
 
Back
Top