473,842 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Download of a file question

Hi everyone,

I would like to implement the following functionality:

User to enter username and password programmaticall y 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 1265
Samuel Shulman wrote:
Hi everyone,

I would like to implement the following functionality:

User to enter username and password programmaticall y 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.Redire ct("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******** ******@TK2MSFTN GP06.phx.gbl...
Samuel Shulman wrote:
>Hi everyone,

I would like to implement the following functionality:

User to enter username and password programmaticall y 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.Redire ct("myfile.exe" )

--

Riki

Jan 1 '07 #3
"Samuel Shulman" <sa************ @ntlworld.comwr ote in message
news:%2******** ********@TK2MSF TNGP03.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**@markNOSPA Mrae.comwrote in message
news:uU******** ******@TK2MSFTN GP03.phx.gbl...
"Samuel Shulman" <sa************ @ntlworld.comwr ote in message
news:%2******** ********@TK2MSF TNGP03.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.comwr ote in message
news:uj******** *****@TK2MSFTNG P03.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
1833
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 file to limit this as well??? For example I have a little media file say about 3MB or something. Once someone visits the site and wants to download this file (ie. http://www.domain.com/dir/file.wmv), I would like something check
1
7210
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 using SAFileUp version 3.2. I ran through their documentation and found a section called "secure download", unfortunately, their examples do not work at all! On Netscape 7, the file "pretends" to download (after changing the file
4
2392
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
21967
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 play it without having to right-click and save. How can I force the browser to pop up the "save file as" dialog box instead of playing it? I know that I can encapsulate it in a zip file which will download and open WinZip. Thanks
0
3047
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 cPanel URL that delivers a gzipped copy of the log file with all entires for the current month (up to the current date and time). I want to run this script once a day (at night) and would like to download the gzipped file by resuming from where...
6
3094
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 save it. From what I can tell, the name of the file is passed as a parameter of the JavaScript. Below is an example of what somebody (who I don't know) has done: http://eteamz.active.com/tejanoswhite90girls/handouts/ Thanks
2
1411
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 Bluetooth printer, which is accomplished by preparing a RTF-file on the server and then downloading this file to the handheld device. We use a third-party application (PrintPocketCE from FieldSoftware) for the actual printing of the downloaded file....
4
4231
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 showing? My intented default action is to always open Open file, just like if i load image, text file or xml file where it does not show the File Download dialog. I dont want to override user preference to always show File Download window.
18
16411
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 completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6)
7
2655
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 download script, so customers on the website can download MP3s to their harddrive (rather than merely listen to it in their browsers):
0
9876
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10950
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10681
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9459
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5699
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5886
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4506
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4096
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3148
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.