I've just done a test with ethereal, to see what was actually been
posted to the server, and indeed there is a problem:
In windows the post is correct, but in linux the values of username and
password have a space in the middle !?
As you can see in the second block, instead of having mds2 i have mds 2
!
However when i execute step by step (in komodo), or print, i can see
that ARGV[0] or ARGV[1] are correct i have indeed mds2.
POST:
0000 00 11 43 bf 2e 71 00 02 44 a1 9d ca 08 00 45 00 ..C..q..
D.....E.
0010 00 b7 ca c0 40 00 40 06 24 0a c0 a8 65 13 c0 a8 ....@.@.
$...e...
0020 65 12 80 a5 00 50 fb c9 84 77 b3 aa f7 8a 80 18 e....P..
.w......
0030 05 b4 74 03 00 00 01 01 08 0a 00 8a 4e cb 00 00 ..t.....
....N...
0040 00 00 50 4f 53 54 20 2f 63 61 5f 65 71 75 69 70 ..POST /
ca_equip
0050 6f 73 2f 61 70 70 5f 63 6c 69 65 6e 74 65 2f 61 os/app_c
liente/a
0060 63 63 65 73 6f 5f 61 70 70 2e 61 73 70 78 20 48 cceso_ap p.aspx
H
0070 54 54 50 2f 31 2e 31 0d 0a 43 6f 6e 6e 65 63 74 TTP/1.1.
.Connect
0080 69 6f 6e 3a 20 63 6c 6f 73 65 0d 0a 41 63 63 65 ion: clo
se..Acce
0090 70 74 3a 20 2a 2f 2a 0d 0a 43 6f 6e 74 65 6e 74 pt: */*.
.Content
00a0 2d 4c 65 6e 67 74 68 3a 20 31 35 0d 0a 48 6f 73 -Length:
15..Hos
00b0 74 3a 20 31 39 32 2e 31 36 38 2e 31 30 31 2e 31 t: 192.1
68.101.1
00c0 38 0d 0a 0d 0a 8....
CONTINUATION:
0000 00 11 43 bf 2e 71 00 02 44 a1 9d ca 08 00 45 00 ..C..q..
D.....E.
0010 00 43 ca c2 40 00 40 06 24 7c c0 a8 65 13 c0 a8 .C..@.@.
$|..e...
0020 65 12 80 a5 00 50 fb c9 84 fa b3 aa f7 a3 80 18 e....P..
........
0030 05 b4 d7 3c 00 00 01 01 08 0a 00 8a 4e cc 00 09 ...<....
....N...
0040 c4 04 75 73 3d 6d 64 73 32 26 70 77 3d 6d 64 73 ..us=mds
2&pw=mds
0050 32 2
--
Posted via http://www.ruby-forum.com/.