473,700 Members | 2,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

login to ftp from a web link

sb
Ok, this has got to be a common problem...
I want to have a page with some files listed as links to the files actually
located on a remote(unix) server (different one to my IIS). In ASP I
dynamically build the url to be:

ftp://username:password@servername/d...r2/filename.gz

....other than it displays the username/password, this should work (the
username/password can be hidden by having it redirect to another page).
Problem is I get a DNS error on the first attempt. The wierd thing is that
if I type this url into the Address bar of my browser it firstly gives me
the dns error and then on the second time works!

My theory of what is happening is that the first time through it logged into
the ftp server, then the second time it logs straight in without the need
for the password. Has anyone had the same problem and found a fix?

I assume this is some kind of security block, but it is kind of annoing
given how easy it would be to implement ftp ability to web sites with no
code on the client.

I am using IIS5 and ASP and vbscript.

Please reply to this newsgroup as my email is a dummy.

SB
Jul 19 '05 #1
6 8133
It's probably because you're linking to a filename instead of the directory
containing the filename.

If the remote server will support it, you could setup a virtual directory in
IIS that goes to \\otherserver\s hare and store your username and password
within IIS for the virtual directory.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
Ok, this has got to be a common problem...
I want to have a page with some files listed as links to the files actually located on a remote(unix) server (different one to my IIS). In ASP I
dynamically build the url to be:

ftp://username:password@servername/d...r2/filename.gz

Jul 19 '05 #2
sb
Thanks Ray but I can't use virtual directories in my case.
SB

"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message
news:OH******** ******@TK2MSFTN GP11.phx.gbl...
It's probably because you're linking to a filename instead of the directory containing the filename.

If the remote server will support it, you could setup a virtual directory in IIS that goes to \\otherserver\s hare and store your username and password
within IIS for the virtual directory.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
Ok, this has got to be a common problem...
I want to have a page with some files listed as links to the files

actually
located on a remote(unix) server (different one to my IIS). In ASP I
dynamically build the url to be:

ftp://username:password@servername/d...r2/filename.gz


Jul 19 '05 #3
Alright, then remove the filename from your path. You'll notice that if you
copy and paste that link into your browser, it won't work. You have to
browse to the directory with the file, not to the file itself. I don't
think there's any automatic GET command sent if you browse to a file.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
Thanks Ray but I can't use virtual directories in my case.
SB

"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message
news:OH******** ******@TK2MSFTN GP11.phx.gbl...
It's probably because you're linking to a filename instead of the directory
containing the filename.

If the remote server will support it, you could setup a virtual directory in
IIS that goes to \\otherserver\s hare and store your username and

password within IIS for the virtual directory.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
Ok, this has got to be a common problem...
I want to have a page with some files listed as links to the files

actually
located on a remote(unix) server (different one to my IIS). In ASP I
dynamically build the url to be:

ftp://username:password@servername/d...r2/filename.gz



Jul 19 '05 #4
sb
Let me put it another way.
This works:
ftp://ftp.microsoft.com/Softlib/MSLFILES/TBKNET.EXE

....however if it was not anonymous, then this would be required...
ftp://auser:pa****@ftp.microsoft.com...LES/TBKNET.EXE

....this does not work the first time. But the second time it does!

SB

"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message
news:u0******** ******@tk2msftn gp13.phx.gbl...
Alright, then remove the filename from your path. You'll notice that if you copy and paste that link into your browser, it won't work. You have to
browse to the directory with the file, not to the file itself. I don't
think there's any automatic GET command sent if you browse to a file.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
Thanks Ray but I can't use virtual directories in my case.
SB

"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message
news:OH******** ******@TK2MSFTN GP11.phx.gbl...
It's probably because you're linking to a filename instead of the

directory
containing the filename.

If the remote server will support it, you could setup a virtual directory
in
IIS that goes to \\otherserver\s hare and store your username and

password within IIS for the virtual directory.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
> Ok, this has got to be a common problem...
> I want to have a page with some files listed as links to the files
actually
> located on a remote(unix) server (different one to my IIS). In ASP I
> dynamically build the url to be:
>
> ftp://username:password@servername/d...r2/filename.gz
>



Jul 19 '05 #5
What happens? Do you get a prompt to download the exe? Does it run? In my
browse, IE6, if I enter an ftp path to a file, that does not work, auth or
anon.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
Let me put it another way.
This works:
ftp://ftp.microsoft.com/Softlib/MSLFILES/TBKNET.EXE

...however if it was not anonymous, then this would be required...
ftp://auser:pa****@ftp.microsoft.com...LES/TBKNET.EXE

...this does not work the first time. But the second time it does!

SB

"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message
news:u0******** ******@tk2msftn gp13.phx.gbl...
Alright, then remove the filename from your path. You'll notice that if

you
copy and paste that link into your browser, it won't work. You have to
browse to the directory with the file, not to the file itself. I don't
think there's any automatic GET command sent if you browse to a file.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
Thanks Ray but I can't use virtual directories in my case.
SB

"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message news:OH******** ******@TK2MSFTN GP11.phx.gbl...
> It's probably because you're linking to a filename instead of the
directory
> containing the filename.
>
> If the remote server will support it, you could setup a virtual

directory
in
> IIS that goes to \\otherserver\s hare and store your username and

password
> within IIS for the virtual directory.
>
> Ray at home
>
> "sb" <sb@hotmail.com > wrote in message
> news:bl******** **@otis.netspac e.net.au...
> > Ok, this has got to be a common problem...
> > I want to have a page with some files listed as links to the files
> actually
> > located on a remote(unix) server (different one to my IIS). In ASP I > > dynamically build the url to be:
> >
> > ftp://username:password@servername/d...r2/filename.gz
> >
>
>



Jul 19 '05 #6
sb
Yes a prompt to download the file appears.
SB

"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message
news:uK******** ******@TK2MSFTN GP11.phx.gbl...
What happens? Do you get a prompt to download the exe? Does it run? In my browse, IE6, if I enter an ftp path to a file, that does not work, auth or
anon.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
Let me put it another way.
This works:
ftp://ftp.microsoft.com/Softlib/MSLFILES/TBKNET.EXE

...however if it was not anonymous, then this would be required...
ftp://auser:pa****@ftp.microsoft.com...LES/TBKNET.EXE

...this does not work the first time. But the second time it does!

SB

"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message
news:u0******** ******@tk2msftn gp13.phx.gbl...
Alright, then remove the filename from your path. You'll notice that if
you
copy and paste that link into your browser, it won't work. You have
to browse to the directory with the file, not to the file itself. I don't think there's any automatic GET command sent if you browse to a file.

Ray at home

"sb" <sb@hotmail.com > wrote in message
news:bl******** **@otis.netspac e.net.au...
> Thanks Ray but I can't use virtual directories in my case.
> SB
>
> "Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in
message > news:OH******** ******@TK2MSFTN GP11.phx.gbl...
> > It's probably because you're linking to a filename instead of the
> directory
> > containing the filename.
> >
> > If the remote server will support it, you could setup a virtual
directory
> in
> > IIS that goes to \\otherserver\s hare and store your username and
password
> > within IIS for the virtual directory.
> >
> > Ray at home
> >
> > "sb" <sb@hotmail.com > wrote in message
> > news:bl******** **@otis.netspac e.net.au...
> > > Ok, this has got to be a common problem...
> > > I want to have a page with some files listed as links to the files > > actually
> > > located on a remote(unix) server (different one to my IIS). In
ASP I > > > dynamically build the url to be:
> > >
> > > ftp://username:password@servername/d...r2/filename.gz
> > >
> >
> >
>
>



Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1656
by: Quinonez | last post by:
Im having a problem, which in my head seems to be simple but i cannot figure it out. there are 3 pages. Page 1 (login form) page 2 (verifies login/pass and begins session. has link to page 3) Page 3 (displays some info has a link back to page 2)
1
2535
by: Joe | last post by:
I have 3 servers server1: http://server1/login.asp, http://server1/page1.as server2: http://server2/login.asp, http://server2/page1.as server3: http://server3/login.asp, http://server3/page1.as When the user login the username and password in http://server1/login.asp, and clic submit button, it will go to http://server1/page1.asp if the username/password are correct In http://server1/page1.asp, there are links to go to...
2
2314
by: Gill Bates | last post by:
I'm trying to login to a banking site (https://www.providentconnection.com) using vb.net. I've tried many variations of WebClient and HttpWebRequest; none of which I've got to work. My latest version is: Dim myWebClient As New WebClient Dim nvc As New NameValueCollection nvc.Add("Login", username) nvc.Add("Password", password)
7
2450
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms authentication. I would like to configure it so that anyone not logged in, trying to access the protected part will not be redirected to the login page, but
2
4238
by: Sasquatch | last post by:
I'm having trouble creating a simple login page using the asp:login control. I followed some instructions in a WROX book, "Beginning ASP.NET 2.0," and the instructions are very straight forward, but it won't work for me. Here's what I did. 1. Created a new folder named "testlogin" 2. Turned that folder into an application using the IIS properties 3. Created two new web form pages, /testlogin/default.aspx and /testlogin/login.aspx...
4
4080
tolkienarda
by: tolkienarda | last post by:
Hi all I work for a small webdesign company and we have remote hosting. i built a mysql database with phpmyadmin on the server. i then downloaded and modified a php login page. i am continuing to get the ---invalid username or password--- i am not getting the E_USER_ERROR so i don't know if there is a problem with the php, how i set up the database or mabe somthing in between. so everyone knows all of my server interface is GUI. I use a company...
19
3292
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash (md5) the password field using a random one-time salt (nonce) -- generated by php and pasted in the form -- that is then posted with the hashed password
1
3310
by: Adrock952 | last post by:
I have a link on my site which obviously says "Login" where users log in. I would like that link to be changed to "Logout" when the user has successfully logged in and the session has been created and when the user logs out, i would like the link changed back to "Login" without having to refresh the page. here is my login page <?php if (is_authed_user()) { print ('You are already logged in, <a href="index.php">click here</a> to...
9
7529
by: adweaver | last post by:
Hello All, I'm new to the world of php. I've just had a site designed for me by a company, and I'm now trying to manage and grow it, so it will suit my needs. The site was built in a folder called mysite.com/test. I coppied this folder a number of times, so I now have mysite.com/test2, mysite.com/test3 etc. Each folder acts as its own landing page. they setup an interface where we can control the upsells presented to the customer;...
1
1940
by: punk86 | last post by:
Hi, i can register and login without fail. However i notice that my inputs are not record into the database. I do not know the reason. Can someone guide me into login and register. Actually im quite confuse with the codings login.php <?php session_start ();
0
8638
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
9202
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...
0
9058
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...
1
8952
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
8909
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
4395
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
4649
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3081
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
2371
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.