469,133 Members | 998 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

Download of a file question

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
Dec 31 '06 #1
5 1106
Samuel Shulman wrote:
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")

--

Riki
Jan 1 '07 #2
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
"Riki" <ri**@dontnagme.comwrote in message
news:O6**************@TK2MSFTNGP06.phx.gbl...
Samuel Shulman wrote:
>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")

--

Riki

Jan 1 '07 #3
"Samuel Shulman" <sa************@ntlworld.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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...
Jan 1 '07 #4
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

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:uU**************@TK2MSFTNGP03.phx.gbl...
"Samuel Shulman" <sa************@ntlworld.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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...

Jan 2 '07 #5
"Samuel Shulman" <sa************@ntlworld.comwrote in message
news:uj*************@TK2MSFTNGP03.phx.gbl...
>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...
Jan 2 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Samir | last post: by
4 posts views Thread by Billy Jacobs | last post: by
4 posts views Thread by Kevin Muenzler, WB5RUE | last post: by
reply views Thread by Chuck Anderson | last post: by
6 posts views Thread by JCO | last post: by
4 posts views Thread by gb | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.