FTP files are download corrupted

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

FTP files are download corrupted

Postby Valter » Jan 12 08 12:14 am

Hello,
We have some problems using Wingate v. 6.2.0 when we download a file via FTP using Internet Explorer, some files are downloaded corrupted; if we check inside them we found that they are corrupt by this:


HTTP/1.0 200 Document Follows
Date: Fri, 11 Jan 2008 08:07:16 GMT
Server: WinGate Engine
Content-Type: application/octet-stream
Content-Length: 4218816

We don’t use the WinGate Internet Client, we’re using the connection settings in Internet Explorer to use our proxy server. The problems never happens if we use one FTP client application (for example, FileZilla).
You can try to reproduce the issue by downloading this file:

ftp://ftp.finanze.it/pub/mod2008/Contro ... A9_150.exe

What is the cause of this problem and how can we resolve it?

Thank you
Valter
 
Posts: 17
Joined: Apr 03 04 3:40 am

Postby genie » Jan 13 08 11:34 pm

We will try reproducing this bug, just a few quick questions:
- Does this bug appear if you connect from a different client machine?
- If you connect/download this file directly from Wingate machine, is the file still corrupted?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby Valter » Jan 14 08 8:33 pm

Hello genie,
yes, the problem also appears if we try to download from different computers.
If we download the file from our proxy machine the file is not corrupted if our Internet Explorer settings exclude Wingate (if we connect IE directly to internet); if we set Internet Explorer to use Wingate, the file is downloaded corrupted..

Thank You
Valter
 
Posts: 17
Joined: Apr 03 04 3:40 am

Postby adrien » Jan 15 08 9:41 am

Hi

that data you posted (200 OK etc) is that from the file itself, or from a network capture?

When using FTP through a proxy from a web browser, the web browser actually uses HTTP commands (like GET ftp://some.server/somefile HTTP/1.0). This then goes through the WWW proxy, and the proper response is to have an HTTP response code with some headers.

If for some reason that response is getting into the file on the browser, that means either

a) the response and headers are not being sent correctly to the browser, or are being sent twice.
b) the browser is not properly parsing the response.

Since this is IE, and we haven't seen this problem before, I suspect a.

Are you able to run a packet capture from the client machine when this happens? There are some free packet capturing products around (such as wireshark) that will allow you to see exactly what is going on.

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby Valter » Jan 21 08 9:58 pm

The corruption data (HTTP/1.0 200 Document..) is from inside the file itself.
We executed Wireshark during the downloading of the file ftp://ftp.finanze.it/pub/mod2008/Contro ... A9_150.exe, and we get this packet:

425 20.850334 192.168.63.1 192.168.63.147 TCP mdbs_daemon > nkd [PSH, ACK] Seq=37231 Ack=200 Win=17321 Len=1460

0000 00 03 ff 43 9d a9 00 11 11 33 69 1e 08 00 45 00 ...C.....3i...E.
0010 05 dc e4 a8 40 00 80 06 10 8e c0 a8 3f 01 c0 a8 ....@.......?...
0020 3f 93 03 20 06 72 d3 63 bf 76 95 fd c7 63 50 18 ?.. .r.c.v...cP.
0030 43 a9 5e 22 00 00 48 54 54 50 2f 31 2e 30 20 32 C.^"..HTTP/1.0 2
0040 30 30 20 44 6f 63 75 6d 65 6e 74 20 46 6f 6c 6c 00 Document Foll
0050 6f 77 73 0d 0a 44 61 74 65 3a 20 4d 6f 6e 2c 20 ows..Date: Mon,
0060 32 31 20 4a 61 6e 20 32 30 30 38 20 30 38 3a 31 21 Jan 2008 08:1
0070 35 3a 32 36 20 47 4d 54 0d 0a 53 65 72 76 65 72 5:26 GMT..Server
0080 3a 20 57 69 6e 47 61 74 65 20 45 6e 67 69 6e 65 : WinGate Engine
0090 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 ..Content-Type:
00a0 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6f 63 74 65 application/octe
00b0 74 2d 73 74 72 65 61 6d 0d 0a 43 6f 6e 74 65 6e t-stream..Conten
00c0 74 2d 4c 65 6e 67 74 68 3a 20 34 32 31 38 38 31 t-Length: 421881
00d0 36 0d 0a 0d 0a 5e 14 7b 3b 52 fa b2 a3 9c 72 35 6....^.{;R....r5
00e0 df 3c 48 77 81 30 64 77 fc f7 c0 d7 e8 74 48 4b .<Hw.0dw.....tHK
00f0 85 8f c2 1d 22 50 01 7d d9 48 04 4e c3 f7 aa f5 ...."P.}.H.N....
0100 6b 26 70 7f 70 0c 6a 4e 20 11 10 0c 49 9c 4b 63 k&p.p.jN ...I.Kc
0110 8d c1 34 53 0e 06 6f 78 31 23 01 ee 12 b8 ae 3b ..4S..ox1#.....;
0120 7d 4a 01 3d d4 bf 80 c8 01 2b d3 83 65 d8 87 dc }J.=.....+..e...
0130 da c4 0d f1 ae 2e a1 bc f3 e0 6d 0b 60 ac e7 5b ..........m.`..[
0140 f5 0c 1c 76 b5 f1 12 af 22 f0 55 f4 8b f8 00 dc ...v....".U.....
0150 6a 03 0b bf 17 89 6d f8 12 64 d8 25 a9 c3 41 37 j.....m..d.%..A7
0160 9a ca 08 29 10 64 cc 01 b2 2b e8 40 61 4b 18 2b ...).d...+.@aK.+
0170 49 43 2c ac 30 c9 57 c5 1c 92 3e 11 65 cc 71 17 IC,.0.W...>.e.q.
0180 15 0b 4c 7e 48 57 d8 89 03 42 f0 22 94 61 9b 8b ..L~HW...B.".a..
0190 4d 53 fc 07 1b 79 c8 c9 07 05 17 a0 e4 61 2f 30 MS...y.......a/0
01a0 cb c8 08 08 9b 2c 85 2d 9d c4 e0 f6 e0 66 74 0f .....,.-.....ft.
01b0 5e c7 40 24 18 e4 6a e7 99 20 d8 6a 01 20 8a 0a ^.@$..j.. .j. ..
01c0 14 60 98 19 0e 66 f0 15 10 f7 99 ea 9a 42 ba 24 .`...f.......B.$
01d0 a0 26 a4 8b d2 e6 2d 0c 2a 4e 75 a8 6c 87 26 d4 .&....-.*Nu.l.&.
01e0 68 98 5c 2b 11 3d bc 1c 2e 4c 7f 11 6b fd e0 92 h.\+.=...L..k...
01f0 53 08 81 d6 63 52 0c c0 7b 21 2d 3d 5f cf c6 3e S...cR..{!-=_..>
0200 d3 42 f3 fe a5 7c 38 83 fe ad 05 73 8b 6f 64 a0 .B...|8....s.od.
0210 ca 4e c5 05 83 39 9f 38 bc 9f d4 7d 05 c3 7e 05 .N...9.8...}..~.
0220 3a 0c 5e 8b 7f 5f a6 4a 61 90 7d cb cc 4d 14 46 :.^.._.Ja.}..M.F
0230 89 31 7b 59 bb fd 97 18 3b 47 0c 77 04 3b f0 76 .1{Y....;G.w.;.v
0240 8d 5f 86 5e 88 9e 81 8d 82 f2 37 9a 88 0a f7 3d ._.^......7....=
0250 21 34 af a3 0e c3 a1 0a c3 08 a6 c3 43 83 26 a1 !4..........C.&.
0260 4b f2 86 fa 8d 1d f1 40 6d 67 54 d8 a3 0e b8 3c K......@mgT....<
0270 61 2d 42 61 06 b3 0f 52 0d c0 04 60 2a 98 76 af a-Ba...R...`*.v.
0280 71 a7 c8 9b bf 05 f0 e9 e0 48 72 6c 00 0c e8 39 q........Hrl...9
0290 6d 39 1a f4 06 ce 40 f0 6f 96 f9 74 85 f4 63 40 m9....@.o..t..c@
02a0 5b ec da 50 86 e3 74 af ea 55 e8 35 16 13 58 66 [..P..t..U.5..Xf
02b0 d1 0f ca 18 51 6d 56 cc 96 3a 73 3c a3 2d 26 e6 ....QmV..:s<.-&.
02c0 c1 c9 c6 3f 4b b9 87 6e 73 0e f7 d8 03 05 3f b8 ...?K..ns.....?.
02d0 99 a2 85 00 94 13 50 c3 51 8d b6 81 04 6e df 05 ......P.Q....n..
02e0 06 3d ec 2d 3e 85 01 4d ec 24 71 f1 7b 2f c4 19 .=.->..M.$q.{/..
02f0 8b e1 8b fe 50 06 5f 34 6c 3f fc 55 66 68 28 3e ....P._4l?.Ufh(>
0300 0d d8 4c e1 a8 59 5d d7 10 03 83 04 3f 89 82 eb ..L..Y].....?...
0310 24 38 92 86 c8 cc 24 36 92 18 71 09 ae ed 8b 25 $8....$6..q....%
0320 b6 02 50 6a fe 68 30 80 64 ff 0d 1f b6 c9 42 ed ..Pj.h0.d.....B.
0330 32 53 58 48 b8 e2 71 5f 8b 60 74 2e 3b 4f c4 e1 2SXH..q_.`t.;O..
0340 ff 59 74 28 8d 34 76 8b 0c b3 89 fe cb 7c ef 1d .Yt(.4v......|..
0350 04 d3 b3 04 e4 b0 5b b3 fa 2e 0b 38 e0 ef e2 ff ......[....8....
0360 54 11 eb c3 64 8f 00 ee e7 49 91 19 04 0f 0d 81 T...d....I......
0370 79 04 d0 c1 e3 3f 8a 26 51 03 52 0c 39 51 08 4f y....?.&Q.R.9Q.O
0380 36 84 75 e1 82 14 51 bb 70 8c 0a 11 fc 8a c2 3d 6.u...Q.p......=
0390 d4 4b 05 97 6b 0c 59 5b ac 1b 1c 2d 1e 5b c9 27 .K..k.Y[...-.[.'
03a0 87 2c c7 b1 14 10 0c c8 fe 06 02 08 66 c2 26 d1 .,..........f.&.
03b0 e9 d1 db f2 3c cb b3 b0 c9 f3 18 14 66 9d 9c 1c ....<.......f...
03c0 10 0c 5e 26 43 62 0b ff 56 43 32 30 58 43 30 30 ..^&Cb..VC20XC00
03d0 7f c4 32 14 4a a3 fe 10 40 99 8d 5c a5 86 23 fb ..2.J...@..\..#.
03e0 f8 fc dc f2 06 03 d5 4d 43 73 7b 59 f0 e0 40 5d .......MCs{Y..@]
03f0 d6 88 5f 4b 74 7b a5 fe bd fb 6c 7d 8d b5 e3 8f .._Kt{....l}....
0400 1e 59 56 55 8d 6b 7d 83 8c 4f e2 33 c9 9b f6 fb .YVU.k}..O.3....
0410 99 c3 6e f6 d0 5d 5e ae 32 3f 78 48 77 2e 0c ca ..n..]^.2?xHw...
0420 46 94 ae 4a 56 18 90 7e d4 c0 37 9c b0 83 b9 8b F..JV..~..7.....
0430 04 8f 02 d7 3f 1b cc 1c 8f 78 cc 34 8f eb 8c b8 ....?....x.4....
0440 bf 67 30 40 30 23 58 7e b5 eb 15 e3 c8 a6 7d ee .g0@0#X~......}.
0450 6a ff a5 5d 2d 4b f6 fd 13 80 55 ce 29 8b 41 1c j..]-K....U.).A.
0460 50 07 18 50 49 23 2d 14 90 0a 3d 38 71 c2 41 4f P..PI#-...=8q.AO
0470 19 60 95 45 bd 96 de c8 28 53 66 57 18 e9 6f 35 .`.E....(SfW..o5
0480 05 c2 47 f6 80 b2 db 07 b0 06 b8 c4 84 c0 55 d2 ..G...........U.
0490 b3 f9 d2 1e 3e 89 ea 47 8a cb d1 46 06 c8 46 f6 ....>..G...F..F.
04a0 81 fe 6f 9a 0f 0e 84 c9 c0 db 8a f8 46 8a d9 8b ..o.........F...
04b0 c3 66 3b c2 13 35 c6 01 09 66 21 41 5e 28 a9 a5 .f;..5...f!A^(..
04c0 24 a8 02 48 eb f4 16 2f 2a 22 dc 57 9d 75 b1 71 $..H.../*".W.u.q
04d0 ba bd ed 00 73 21 4f 1f 0e 8b f8 56 4e 46 f3 5b ....s!O....VNF.[
04e0 a3 76 39 c7 ae 00 4c e9 00 cf e2 00 77 00 f6 61 .v9...L.....w..a
04f0 5e cb 50 65 a0 56 74 cd 07 fa 0f de 24 58 c8 80 ^.Pe.Vt.....$X..
0500 e1 03 6f 80 f9 02 75 3a 66 a9 e1 a5 ee d8 6b 34 ..o...u:f.....k4
0510 29 c3 3e 2b 58 b7 fe 05 d9 7e 27 57 50 1f c2 43 ).>+X....~'WP..C
0520 5d 58 f9 0f bc 79 0f 04 a3 0a 75 61 ba 07 60 58 ]X...y....ua..`X
0530 0c d8 83 d5 5f 66 ce 89 06 de 00 74 53 38 c3 ed ...._f.....tS8..
0540 75 09 71 eb 00 6c 32 07 c3 eb db ea 6f ac 18 1f u.q..l2.....o...
0550 f6 46 0d 40 6b b7 5a 00 4a e9 76 75 59 ea 0c 34 .F.@k.Z.J.vuY..4
0560 fe 43 b1 70 f4 05 ff 39 35 a0 d4 03 a0 4d bf ff .C.p...95....M..
0570 4d a1 94 c4 66 04 b0 46 38 02 7e d6 48 13 83 74 M...f..F8.~.H..t
0580 30 c1 10 a5 56 db 78 7f 0f 2b ce 25 ac a9 7b 1d 0...V.x..+.%..{.
0590 43 eb 1a 2a ad 5e d0 d7 9a 80 0e 35 75 02 0b 6b C..*.^.....5u..k
05a0 d6 41 b6 ca 99 a9 71 43 74 fc 82 c7 04 d5 c3 ff .A....qCt.......
05b0 3f c3 b8 80 8a 6b fd 77 06 ce 48 cf 56 6a 14 5e ?....k.w..H.Vj.^
05c0 75 07 04 a5 6b 00 f0 eb 06 3b c6 be a3 32 e0 24 u...k....;...2.$
05d0 3b 3c 5b 84 42 a5 7c 68 d9 f7 2a 75 1e 25 56 89 ;<[.B.|h..*u.%V.
05e0 b5 31 05 6a 1a 58 e1 27 f8 16 .1.j.X.'..



The corruption data begins after the checksum bytes, at the start of Data segnent.
Have you any suggestion for resolve this problem?
Thank you very much for your support!
Valter
 
Posts: 17
Joined: Apr 03 04 3:40 am

Postby Valter » Jan 31 08 4:50 am

Hey, are there any news?
Thank You!
Valter
 
Posts: 17
Joined: Apr 03 04 3:40 am

Postby adrien » Jan 31 08 10:50 am

Hi sorry, that link no longer works, can you make the download available again please?

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby Valter » Jan 31 08 10:53 pm

Hi Adrien!

I tried now the link

ftp://ftp.finanze.it/pub/mod2008/Contro ... A9_150.exe

and it works for me.
Have you some problem?
Valter
 
Posts: 17
Joined: Apr 03 04 3:40 am


Return to WinGate

Who is online

Users browsing this forum: Google [Bot] and 16 guests