473,396 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1248
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Samir | last post by:
Hello, I have a website that is hosted by another company. Is there some kind of php script to limit downloading to a certain amount size? And is there kind thing I can do to the .htaccess...
1
by: Dave | last post by:
Hi Everyone, I was wondering if anyone has ever successfully used SA-FileUp's download feature. I am being forced to change from "ASPSmartUpload" as the server I am moving everything to is...
4
by: Billy Jacobs | last post by:
Is there a way to download multiple files from a server? If not then: How do I zip up multiple files using the .net classes in vb? Thanks Billy Jacobs
4
by: Kevin Muenzler, WB5RUE | last post by:
How do I force a browser to download a file instead of displaying it? In other words I have a page with MP3 and WMA files on it and I would like for the visitor to download the file instead of...
0
by: Chuck Anderson | last post by:
I am writing a Php script to run on my home PC (Windows) that downloads an Apache access log file and inserts new entries into a database.. The only way I can access these log files is through a...
6
by: JCO | last post by:
Does anybody have a Download Dialog written in JavaScripts? This is for a website. I've seen it done before.... where you click on what you want and the dialog comes up asking you if you want to...
2
by: mio | last post by:
Hi We have a WEB-based application (developed in Visual Studio 2005) running on handheld devices in Internet Explorer on Windows Mobile 2003. The application needs to print tickets on a...
4
by: gb | last post by:
hi, i placed System.Windows.Forms.WebBrowser in my WinForm. When i tried loading word document, it opens the File Download window. My question is how can i avoid the File Download window from...
18
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does...
7
by: lawrence k | last post by:
I've got a music studio for a client. Their whole studio is run with Macintosh computers. Macintosh computers allow file names to have open white spaces, such as "animal hospital.mp3". I have a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.