Re: Copying file via HTTP fails

From: Bajo (bajoalex@gmail.com)
Date: Wed Nov 21 2007 - 08:17:07 ART


Hi Toh,

Has to be the enable pwd on the source router (R5): U do not have to
even create "username test pass test" on both routers.

1. when same user (not test) is login on both routers (no need to specify UID)

Rack1R3#copy http://:test@150.1.4.4/flash/t2.jpeg flash
Address or name of remote host [150.1.4.4]?
Source filename [flash/t2.jpeg]?
Destination filename [t2.jpeg]?
%Warning:There is a file already existing with this name
Do you want to over write? [confirm]
Loading http://*********@150.1.4.4/flash/t2.jpeg !
2988 bytes copied in 0.720 secs (4150 bytes/sec)

2. When local user t1 (not created on source router). Have to specify UID.

Rack1R3#copy http://t1:test@150.1.4.4/flash/t2.jpeg flash
Destination filename [t2.jpeg]?
%Warning:There is a file already existing with this name
Do you want to over write? [confirm]
Loading http://*******@150.1.4.4/flash/t2.jpeg !
2988 bytes copied in 0.784 secs (3811 bytes/sec)
Rack1R3#exit

On 11/21/07, Toh Soon, Lim <tohsoon28@gmail.com> wrote:
>
>
> Hi Bajo,
>
> I have the following config but the copy http operation still fails:
>
> R5
> --
> !
> username test password test
> ip http server
> ip http authentication local
> ip http path flash:
> !
>
> R5#dir flash:
> Directory of flash:/
> 20 -rw- 1959 Nov 21 2007 23:21:10 +08:00 test.jpg
>
>
> R2
> --
> R2#pi 150.50.9.5
>
> Type escape sequence to abort.
> Sending 5, 100-byte ICMP Echos to 150.50.9.5, timeout is 2 seconds:
> !!!!!
> Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
>
> R2#copy http://test:test@150.50.9.5/test.jpg flash:
> Destination filename [test.jpg]?
> %Error opening http://test:test@150.50.9.5/test.jpg
> (Permission denied)
>
> R2#copy http://test:test@150.50.9.5/flash/test.jpg flash:
> Destination filename [test.jpg]?
> %Error opening http://test:test@150.50.9.5/flash/test.jpg
> (Permission denied)
>
>
> What did I miss in my config? Please advise.
>
>
> Thank you.
>
> B.Rgds,
> Lim TS
>
>
>
> On 11/21/07, Bajo <bajoalex@gmail.com> wrote:
> > Hi Toh,
> >
> > Try "copy http://UID:PWD@150.1.4.4/flash/t1.txt flash"
> >
> > Destination filename [t1.txt]?
> > Loading http://****************@150.1.4.4/flash/t1.txt !
> > 2938 bytes copied in 0.428 secs (6864 bytes/sec)
> >
> >
> > UID=user id and PWD=password
> >
> >
> > On 11/20/07, Toh Soon, Lim < tohsoon28@gmail.com> wrote:
> > > Hi Group,
> > >
> > > I encountered an issue which I need help. A very simple setup: R2 & R5
> are
> > > directly connected via a serial link. No ACLs or QoS policy on their
> > > interfaces. They can ping to each other.
> > >
> > > I configured the following commands on R5:
> > >
> > > ip http server
> > > ip http path flash:
> > >
> > > There's a file called test.jpg in its flash: directory. On R2, I copied
> > > test.jpg from R5 via HTTP, as follows:
> > >
> > > R2#copy http: flash:
> > > Address or name of remote host [150.50.9.5]? <---- IP address of R5's
> > > serial interface
> > > Source filename [test.jpg]?
> > > Destination filename [test.jpg]?
> > > %Error opening http://150.50.9.5/test.jpg (Permission denied)
> > >
> > > What am I missing? Kindly help.
> > >
> > >
> > > Thank you.
> > >
> > > B.Rgds,
> > > Lim TS
> > >
> > >
> _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> >
> >
> > --
> > Kind Regards,
> >
> > Bajo
> >
>
>

-- 
Kind Regards,

Bajo



This archive was generated by hypermail 2.1.4 : Sat Dec 01 2007 - 06:37:30 ART