Free the mouse Replay RnsGetZipcode2
Home | Changes | Index | Search | Go

getzipcode2.pl request

This request looks like:
   http://rns.replaytv.net/cgi-bin/2.0/getzipcode2.pl?zipcode=97206&country=US
An If-Modified-Since header is used, like:
   If-Modified-Since: Fri, 17 Aug 2001 17:48:34 GMT
Thus, the usual response is a 304 Not Modified.

The response body, when it is sent, is a binary file with content-type application/vnd.replay.zipcode that gives information on the HeadEnd available in the given zipcode, with one 124-byte record per avilable HeadEnd.

Record

An example record:
00000000 45 43 48 4f 53 54 00 00 44 49 53 48 20 4e 65 74   ECHOST..DISH Net
00000010 77 6f 72 6b 00 00 00 00 00 00 00 00 00 00 00 00   work............
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00000040 53 00 00 00 69 72 62 3d 3a 37 37 35 3a 00 00 00   S...irb=:775:...
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00000070 00 00 00 00 00 00 00 00 00 00 00 00               ............
Offset Size Name Description
0 8 char headendid[8] A string like OR36575, A97206 or DITV. I don't know if this is NUL terminated or padded
8 56 char description[56] A longer description of the HeadEnd. It may not actually be this long, but no non-zero bytes have been seen in here after the end of the description
64 1 type See the HeadEnd Type table below
65 3 unknown Always zero
68 56 char extra_data[56] So far, only seen on satellite headends, and only strings of the form irb:number=, setting the infrared blaster code to be used for this headend. Presumably this field can be extended with other tags to supply additional information, without changing the record format.

Headend Type table

Key Description
A Antenna
C Cable
S Satellite

-- ToddLarason - 15 Mar 2002


Your post will appear before this form in chronological order (newest at bottom)

Attachment: Action: Size: Date: Who: Comment:
getzipcode2-repsonse.dat action 620 12 Mar 2002 - 11:15 ToddLarason Sample response from getzipcode2.pl
dump-zipcode2.c action 2386 14 Mar 2002 - 00:56 ToddLarason dumps the zipcode2 data in a text format

Topic RnsGetZipcode2 . { Edit | Attach | Ref-By | Printable | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.3 - 01 Apr 2003 - 04:48 GMT - TWikiGuest

Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.