Modify

Opened 22 months ago

#22257 new defect

uclient-fetch does not honour 302 redirect

Reported by: bittorf@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

tested with r49218

root@box:~ uclient-fetch http://10.63.21.97/cgi-bin-get.sh
Downloading 'http://10.63.21.97/cgi-bin-get.sh'
Connecting to 10.63.21.97:80
HTTP error 302
root@box:~

A "normal" wget (busybox), GNU and curl are following the redirect and can download the file. The cgi-script on the other side outputs this:

Status: 302 Temporary Redirect
Connection: close
Cache-Control: no-cache
Content-Type: text/html
Location: /USERDB_COPY.txt

<HTML><HEAD>
<TITLE>302 Temporary Redirect</TITLE>
<META HTTP-EQUIV="cache-control" CONTENT="no-cache">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="refresh" CONTENT="0; URL=/USERDB_COPY.txt">
</HEAD><BODY>
<H1>302 - Temporary Redirect</H1>
<P>click <A HREF="/USERDB_COPY.txt">here</A> if you are not redirected automatically.</P>
</BODY></HTML>

the first lines are these:

00000000  53 74 61 74 75 73 3a 20  33 30 32 20 54 65 6d 70  |Status: 302 Temp|
00000010  6f 72 61 72 79 20 52 65  64 69 72 65 63 74 0a 43  |orary Redirect.C|
00000020  6f 6e 6e 65 63 74 69 6f  6e 3a 20 63 6c 6f 73 65  |onnection: close|
00000030  0a 43 61 63 68 65 2d 43  6f 6e 74 72 6f 6c 3a 20  |.Cache-Control: |
00000040  6e 6f 2d 63 61 63 68 65  0a 43 6f 6e 74 65 6e 74  |no-cache.Content|
00000050  2d 54 79 70 65 3a 20 74  65 78 74 2f 68 74 6d 6c  |-Type: text/html|
00000060  0a 4c 6f 63 61 74 69 6f  6e 3a 20 2f 55 53 45 52  |.Location: /USER|
00000070  44 42 5f 43 4f 50 59 2e  74 78 74 0a 0a           |DB_COPY.txt..|
0000007d

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.