curl-library
x-amf + read odds from unibet.com
Date: Wed, 12 Mar 2008 08:59:43 +0100
Hello,
I want to read the live-event odds from unibet.com, but I've got some
problems with x-amf.
I'm using 'Charles' to analyze my traffic.
The request header is:
POST /livebetting/gateway.do HTTP/1.1
Host: de.unibet.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.12)
Gecko/20080201 Firefox/2.0.0.12
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: Apache=77.1.171.34.1205308110089607;
JSESSIONID=489wHXKTt5z5dTlk70BJNh2p3sr72X8lSpP2LpGYV2Q4nPhTlh0q!849124462;
unibet.lang=de; unibet.timezone=1
Referer: https://de.unibet.net/livebetting/punter_gui.swf
Content-type: application/x-amf
Content-length: 238
So far so good, but I've got no idea how to POST the amf data:
00000000 00 00 00 00 00 04 00 18 4c 69 76 65 42 65 74 74 LiveBett
00000010 69 6e 67 2e 67 65 74 42 65 74 4f 66 66 65 72 73 ing.getBetOffers
00000020 00 02 2f 35 00 00 00 17 0a 00 00 00 02 00 3f f0 /5 ?
00000030 00 00 00 00 00 00 00 41 cd cf 54 87 00 00 00 00 A T
00000040 1a 4c 69 76 65 42 65 74 74 69 6e 67 2e 67 65 74 LiveBetting.get
00000050 53 65 74 74 6c 65 64 42 65 74 73 00 02 2f 36 00 SettledBets /6
00000060 00 00 17 0a 00 00 00 02 00 3f f0 00 00 00 00 00 ?
00000070 00 00 c0 f5 02 90 00 00 00 00 00 18 4c 69 76 65 Live
00000080 42 65 74 74 69 6e 67 2e 67 65 74 42 65 74 4f 66 Betting.getBetOf
00000090 66 65 72 73 00 02 2f 37 00 00 00 17 0a 00 00 00 fers /7
000000a0 02 00 3f f0 00 00 00 00 00 00 00 41 cd cf 54 87 ? A T
000000b0 00 00 00 00 1a 4c 69 76 65 42 65 74 74 69 6e 67 LiveBetting
000000c0 2e 67 65 74 53 65 74 74 6c 65 64 42 65 74 73 00 .getSettledBets
000000d0 02 2f 38 00 00 00 17 0a 00 00 00 02 00 3f f0 00 /8 ?
000000e0 00 00 00 00 00 00 c0 f4 fc b0 00 00 00 00
Any help would be great.
Thanks,
Michael
Received on 2008-03-12