Path: news.mathworks.com!newsfeed.mathworks.com!bloom-beacon.mit.edu!news.kodak.com!douglas.schwarz
From: Doug Schwarz <douglas.schwarz@kodak.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: URLREAD and password protected url...
Date: Fri, 22 Aug 2003 12:57:23 -0400
Organization: Eastman Kodak Company, Rochester, NY, USA
Lines: 31
Message-ID: <douglas.schwarz-F4BFCA.12572222082003@news.kodak.com>
References: <eec2a4f.-1@WebX.raydaftYaTP> <eec2a4f.0@WebX.raydaftYaTP>
NNTP-Posting-Host: macschwarz.rl.kodak.com
User-Agent: MT-NewsWatcher/3.1 (PPC)
Xref: news.mathworks.com comp.soft-sys.matlab:171046



In article <eec2a4f.0@WebX.raydaftYaTP>, Jeremie <invalid@nospam.com> 
wrote:

>Michael Robbins wrote:
>> I want to download data from a URL but it prompts for a username
>> and
>> password.
>
>
>if your url is <http://www.company.com/private/>,
>your login 'login' and your password 'password', did you try to use
>the URL
> <http://login>:password@www.company.com/private/


Shouldn't that be

  <http://login:password@www.company.com/private/> ?

Note the placement of the '>'.  I just used this syntax to get a file 
via ftp and it worked just fine.

As for the '/' in the password, it might work as is because maybe the 
'/' won't terminate the password part of the URL (since the '@' should 
do that) or maybe you can try escaping it with a backslash or the % 
notation.

-- 
Doug Schwarz
Eastman Kodak Company
douglas.schwarz@kodak.com