473,786 Members | 2,866 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 1263
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
1832
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
7207
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
2391
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
21953
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
3045
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
3092
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
1409
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
16407
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
2653
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
9650
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
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6748
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
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
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.