Path: news.mathworks.com!newsfeed.mathworks.com!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!llslave.llan.ll.mit.edu!53ab2750!not-for-mail
Newsgroups: comp.soft-sys.matlab
Subject: Re: URLREAD and password protected url...
References: <eec2a4f.-1@WebX.raydaftYaTP> <eec2a4f.0@WebX.raydaftYaTP>
From: Peter Boettcher <boettcher@ll.mit.edu>
Message-ID: <m3oeyhsk1a.fsf@coyote.llan.ll.mit.edu>
Organization: MIT Lincoln Laboratory
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)
Cancel-Lock: sha1:3GUD8ywtZizmgYfFiTEH9DQoKrU=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 31
Date: Fri, 22 Aug 2003 13:02:09 -0400
NNTP-Posting-Host: 155.34.163.111
X-Complaints-To: news@ll.mit.edu
X-Trace: llslave.llan.ll.mit.edu 1061571729 155.34.163.111 (Fri, 22 Aug 2003 13:02:09 EDT)
NNTP-Posting-Date: Fri, 22 Aug 2003 13:02:09 EDT
Xref: news.mathworks.com comp.soft-sys.matlab:171047



Doug Schwarz <douglas.schwarz@kodak.com> writes:

> 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.

The > was inserted courtesy of the perpetually broken URL handling of
the MATLAB Central newsreader.


-- 
Peter Boettcher <boettcher@ll.mit.edu>
MIT Lincoln Laboratory
MATLAB FAQ: http://www.mit.edu/~pwb/cssm/