RE: Not able to copy a file using http when client and server

From: Jack Router <pan.router_at_gmail.com>
Date: Tue, 3 Aug 2010 23:13:24 -0400

Try this on R2 before copying files.

ip http client username cisco
ip http client password cisco

Here is my config on R1:

ip http server
ip http authentication local
no ip http secure-server
ip http path flash:
username cisco privilege 15 password 0 cisco

It works for me.

-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of Sonu
Khandelwal (sokhande)
Sent: 3-Aug-10 22:17
To: Group Study
Subject: Not able to copy a file using http when client and server are
routers

Hi All,
I have simple topology like this:

R1----R2

R1 is acting as a http server and R2 is acting as a http client. I see
when I try to copy a file from R2 to R1, it says (Permission denied) on
R2. While At R1 it says authentication failed. Can you please help me?

R1#sh run | i http
ip http server
ip http authentication local
no ip http secure-server
R1#sh run | i username
username cisco privilege 15 password 0 cisco
R1#

R1#dir
Directory of disk2:/

    1 -rw- 44447288 Oct 28 2009 18:36:32 +00:00
c7200-adventerprisek9-mz
    2 -rw- 1758 Oct 28 2009 22:16:18 +00:00 basic_config
    3 -rw- 2659 Oct 31 2009 23:09:42 +00:00 lab2config
    4 -rw- 3627 Nov 8 2009 02:28:32 +00:00 lab3
    5 -rw- 2771 Dec 20 2009 08:19:32 +00:00 lab14
    6 -rw- 3146 Jan 12 2010 00:15:00 +00:00 lab1
    7 -rw- 1634 Feb 3 2010 03:49:54 +00:00 copy

127893504 bytes total (83419136 bytes free)
R1#

R2#copy http://cisco:cisco@102.1.1.1 disk2:
Address or name of remote host [102.1.1.1]?
Source filename [disk2:/lab14]?
Destination filename [lab14]?
%Warning:There is a file already existing with this name
Do you want to over write? [confirm]
%Error opening http://*****:*****@102.1.1.1/disk2:/lab14 (Permission
denied)

At R1 I see these debugs:

*Aug 3 17:35:16.362: its_urlhook url: /disk2:/lab14, method 1
*Aug 3 17:35:16.362: lds_urlhook, url=/disk2:/lab14
*Aug 3 17:35:16.362: Tue, 03 Aug 2010 17:35:16 GMT 102.1.1.2
/disk2:/lab14 auth_required
        Protocol = HTTP/1.1 Method = GET
*Aug 3 17:35:16.362: Date = Tue, 03 Aug 2010 17:35:05 GMT

*Aug 3 17:35:16.366: its_urlhook url: /disk2:/lab14, method 1
*Aug 3 17:35:16.366: lds_urlhook, url=/disk2:/lab14
*Aug 3 17:35:16.366: HTTP: Authentication failed for realm level_15 or
view_access
*Aug 3 17:35:16.366: HTTP: Authentication failed for level 15
R1#
*Aug 3 17:35:18.366: Tue, 03 Aug 2010 17:35:18 GMT 102.1.1.2
/disk2:/lab14 auth_failed
        Protocol = HTTP/1.1 Method = GET
*Aug 3 17:35:18.366: Date = Tue, 03 Aug 2010 17:35:05 GMT

Thanks,
Sonu

Blogs and organic groups at http://www.ccie.net
Received on Tue Aug 03 2010 - 23:13:24 ART

This archive was generated by hypermail 2.2.0 : Wed Sep 01 2010 - 11:20:52 ART