/ MacTech 1 to 12
/ MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.12 Dec 95 / Frontier CGIs / CGI Framework 3.0.1 / Install files / webserver.httpHeader ![]() | < prev | next > |
MacBinary | 1995-10-29 | 2.3 KB | [2CLK/LAND] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
100% | file | MacBinary II, inited, Sun Oct 29 15:42:31 1995, modified Sun Oct 29 15:42:32 1995, creator 'LAND', type '2CLK' "webserver.httpHeader", at 0x80 2153 bytes resource Apple HFS/HFS+ resource fork, map offset 0x7cf, map length 0x9a, data length 0x6cf, nextResourceMap 0xc8fb5c, fileRef 0x13d6, list offset 0x1c, name offset 0x7e, 3 types, 0x53545220 'STR ' * 4 resource offset 0x1a | default (weak) | |
99% | file | data | default | |
66% | TrID | raw Group 3 FAX bitmap | default (weak) | |
33% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [2CLK] |
macFileCreator | [LAND] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 77 65 62 73 65 72 | 76 65 72 2e 68 74 74 70 |..webser|ver.http|
|00000010| 48 65 61 64 65 72 00 00 | 00 00 00 00 00 00 00 00 |Header..|........|
|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| 00 32 43 4c 4b 4c 41 4e | 44 01 00 00 00 00 00 00 |.2CLKLAN|D.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 08 69 ac b9 97 b7 ac |........|..i.....|
|00000060| b9 97 b8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 16 af 00 00 |........|........|
|00000080| 00 00 01 00 00 00 07 cf | 00 00 06 cf 00 00 00 9a |........|........|
|00000090| 00 00 00 00 0a 00 0a 00 | 42 00 d2 88 02 5e 30 00 |........|B....^0.|
|000000a0| 00 00 4e 00 02 00 00 00 | 00 00 5a 01 28 00 6e 01 |..N.....|..Z.(.n.|
|000000b0| 14 77 65 62 73 65 72 76 | 65 72 2e 68 74 74 70 48 |.webserv|er.httpH|
|000000c0| 65 61 64 65 72 48 02 00 | 00 00 32 43 4c 4b 4c 41 |eaderH..|..2CLKLA|
|000000d0| 00 00 32 43 4c 4b 4c 41 | 4e 44 01 00 00 00 00 00 |..2CLKLA|ND......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 ac b9 97 b7 00 00 | 00 00 00 00 08 69 f2 00 |........|.....i..|
|00000100| 54 01 32 04 02 4f 4b 00 | 00 00 00 00 40 00 a5 00 |T.2..OK.|....@...|
|00000110| 54 00 e5 04 06 43 61 6e | 63 65 6c 00 00 00 00 00 |T....Can|cel.....|
|00000120| 09 00 0d 00 19 01 30 88 | 02 5e 30 00 00 00 00 00 |......0.|.^0.....|
|00000130| 1e 00 11 00 2e 01 30 90 | 00 00 00 00 48 00 02 00 |......0.|....H...|
|00000140| 00 00 00 00 48 01 0a 00 | 5c 01 4c 04 02 4f 4b 00 |....H...|\.L..OK.|
|00000150| 00 00 00 00 48 00 b8 00 | 5c 00 fa 04 06 43 61 6e |....H...|\....Can|
|00000160| 63 65 6c 00 00 00 00 00 | 0f 00 10 00 3f 01 4e 88 |cel.....|....?.N.|
|00000170| 14 70 72 6f 6d 70 74 20 | 67 6f 65 73 20 68 65 72 |.prompt |goes her|
|00000180| 00 00 00 06 05 34 2e 30 | 62 31 00 00 00 09 08 46 |.....4.0|b1.....F|
|00000190| 72 6f 6e 74 69 65 72 00 | 00 00 f0 00 01 04 4a 00 |rontier.|......J.|
|000001a0| 02 00 00 00 0c 00 00 00 | 68 00 00 02 00 00 0f 06 |........|h.......|
|000001b0| 47 65 6e 65 76 61 00 00 | 00 00 00 00 00 00 00 00 |Geneva..|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 0c 00 00 00 00 00 | 00 00 00 00 00 06 54 00 |........|......T.|
|000001e0| 00 a4 d0 77 90 ac b9 97 | b8 00 00 00 09 00 00 00 |...w....|........|
|000001f0| a0 00 32 01 04 02 12 4c | 41 4e 44 00 00 00 00 00 |..2....L|AND.....|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 6f | 6e 20 63 61 6c 6c 69 6d |.......o|n callim|
|00000220| 70 6f 72 74 65 72 20 28 | 70 61 74 68 29 20 c7 74 |porter (|path) .t|
|00000230| 68 69 73 20 73 63 72 69 | 70 74 20 69 73 20 73 61 |his scri|pt is sa|
|00000240| 76 65 64 20 77 69 74 68 | 20 61 6c 6c 20 65 78 70 |ved with| all exp|
|00000250| 6f 72 74 65 64 20 6f 62 | 6a 65 63 74 73 0d 09 72 |orted ob|jects..r|
|00000260| 65 74 75 72 6e 20 28 65 | 78 70 6f 72 74 2e 69 6d |eturn (e|xport.im|
|00000270| 70 6f 72 74 65 72 20 28 | 70 61 74 68 29 29 0d 80 |porter (|path))..|
|00000280| 00 00 00 00 00 80 00 00 | 00 00 00 00 00 00 0d 0c |........|........|
|00000290| 63 61 6c 6c 69 6d 70 6f | 72 74 65 72 00 00 00 02 |callimpo|rter....|
|000002a0| 01 31 00 00 05 a9 73 63 | 70 74 00 01 04 4a 00 02 |.1....sc|pt...J..|
|000002b0| 00 00 00 8a 00 00 04 9f | 00 03 02 00 00 0f 06 47 |........|.......G|
|000002c0| 65 6e 65 76 61 00 00 00 | 00 00 00 00 00 00 00 00 |eneva...|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 0c 00 00 00 00 00 00 | 00 00 00 00 06 54 00 00 |........|.....T..|
|000002f0| ac 01 af 88 ac b9 97 b8 | 00 00 00 23 00 00 00 28 |........|...#...(|
|00000300| 00 2d 01 c5 02 6b 4c 41 | 4e 44 00 00 00 00 00 00 |.-...kLA|ND......|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 6f 6e | 20 68 74 74 70 48 65 61 |......on| httpHea|
|00000330| 64 65 72 20 28 73 74 61 | 74 75 73 20 3d 20 22 32 |der (sta|tus = "2|
|00000340| 30 30 20 4f 4b 22 2c 20 | 6d 6f 64 69 66 69 65 72 |00 OK", |modifier|
|00000350| 20 3d 20 22 74 65 78 74 | 2f 68 74 6d 6c 22 29 0d | = "text|/html").|
|00000360| 09 54 68 69 73 20 73 63 | 72 69 70 74 20 70 72 6f |.This sc|ript pro|
|00000370| 64 75 63 65 73 20 73 74 | 61 6e 64 61 72 64 20 48 |duces st|andard H|
|00000380| 54 54 50 20 48 65 61 64 | 65 72 73 20 75 73 69 6e |TTP Head|ers usin|
|00000390| 67 20 74 68 69 73 20 73 | 79 6e 74 61 78 3a 0d 09 |g this s|yntax:..|
|000003a0| 09 68 74 74 70 48 65 61 | 64 65 72 20 28 5b 73 74 |.httpHea|der ([st|
|000003b0| 61 74 75 73 5d 2c 20 5b | 6d 6f 64 69 66 69 65 72 |atus], [|modifier|
|000003c0| 5d 29 0d 09 09 74 68 65 | 20 70 61 72 61 6d 65 74 |])...the| paramet|
|000003d0| 65 72 73 20 61 72 65 3a | 0d 09 09 09 74 79 70 65 |ers are:|....type|
|000003e0| 3a 20 64 65 66 61 75 6c | 74 20 3d 20 22 32 30 30 |: defaul|t = "200|
|000003f0| 20 4f 4b 22 2c 20 54 68 | 69 73 20 69 73 20 74 68 | OK", Th|is is th|
|00000400| 65 20 73 74 61 6e 64 61 | 72 64 20 48 54 54 50 20 |e standa|rd HTTP |
|00000410| 73 74 61 74 75 73 20 63 | 6f 64 65 0d 09 09 09 6d |status c|ode....m|
|00000420| 6f 64 69 66 69 65 72 20 | 3a 20 64 65 66 61 75 6c |odifier |: defaul|
|00000430| 74 20 3d 20 22 74 65 78 | 74 2f 68 74 6d 6c 22 2c |t = "tex|t/html",|
|00000440| 20 54 68 69 73 20 69 73 | 20 65 69 74 68 65 72 20 | This is| either |
|00000450| 74 68 65 20 63 6f 6e 74 | 65 6e 74 20 74 79 70 65 |the cont|ent type|
|00000460| 20 6f 66 20 74 68 65 20 | 64 61 74 61 0d 09 09 09 | of the |data....|
|00000470| 09 72 65 74 75 72 6e 65 | 64 2e 20 20 49 6e 20 74 |.returne|d. In t|
|00000480| 68 65 20 63 61 73 65 20 | 6f 66 20 61 20 33 30 32 |he case |of a 302|
|00000490| 20 46 4f 55 4e 44 20 68 | 65 61 64 65 72 20 74 68 | FOUND h|eader th|
|000004a0| 69 73 20 70 61 72 61 6d | 65 74 65 72 20 69 73 20 |is param|eter is |
|000004b0| 74 68 65 20 6c 6f 63 61 | 74 69 6f 6e 20 28 55 52 |the loca|tion (UR|
|000004c0| 4c 29 0d 09 09 09 09 74 | 6f 20 72 65 64 69 72 65 |L).....t|o redire|
|000004d0| 63 74 20 74 68 65 20 72 | 65 71 75 65 73 74 2e 0d |ct the r|equest..|
|000004e0| 09 09 68 74 74 70 48 65 | 61 64 65 72 20 28 29 20 |..httpHe|ader () |
|000004f0| 77 69 6c 6c 20 72 65 74 | 75 72 6e 20 74 68 65 20 |will ret|urn the |
|00000500| 6d 6f 73 74 20 63 6f 6d | 6d 6f 6e 6c 79 20 75 73 |most com|monly us|
|00000510| 65 64 20 68 65 61 64 65 | 72 20 66 6f 72 20 63 67 |ed heade|r for cg|
|00000520| 69 27 73 2e 0d 09 0d 09 | 6c 6f 63 61 6c 20 28 73 |i's.....|local (s|
|00000530| 29 0d 09 63 61 73 65 20 | 73 74 61 74 75 73 0d 09 |)..case |status..|
|00000540| 09 22 34 30 31 20 55 4e | 41 55 54 48 4f 52 49 5a |."401 UN|AUTHORIZ|
|00000550| 45 44 22 20 c7 20 72 65 | 71 75 65 73 74 73 20 75 |ED" . re|quests u|
|00000560| 73 65 72 6e 61 6d 65 2f | 70 61 73 73 77 6f 72 64 |sername/|password|
|00000570| 20 66 72 6f 6d 20 62 72 | 6f 77 73 65 72 0d 09 09 | from br|owser...|
|00000580| 09 73 20 3d 20 22 48 54 | 54 50 2f 31 2e 30 20 22 |.s = "HT|TP/1.0 "|
|00000590| 20 2b 20 73 74 61 74 75 | 73 20 2b 20 22 5c 72 5c | + statu|s + "\r\|
|000005a0| 6e 57 57 57 2d 41 75 74 | 68 65 6e 74 69 63 61 74 |nWWW-Aut|henticat|
|000005b0| 65 3a 20 42 61 73 69 63 | 20 72 65 61 6c 6d 3d 5c |e: Basic| realm=\|
|000005c0| 22 22 20 2b 20 6d 6f 64 | 69 66 69 65 72 20 2b 20 |"" + mod|ifier + |
|000005d0| 22 5c 22 5c 72 5c 6e 22 | 0d 09 09 09 73 20 3d 20 |"\"\r\n"|....s = |
|000005e0| 73 20 2b 20 22 53 65 72 | 76 65 72 3a 20 22 20 2b |s + "Ser|ver: " +|
|000005f0| 20 77 65 62 73 65 72 76 | 65 72 2e 70 72 65 66 65 | webserv|er.prefe|
|00000600| 72 65 6e 63 65 73 2e 73 | 65 72 76 65 72 20 2b 20 |rences.s|erver + |
|00000610| 22 5c 72 5c 6e 5c 72 5c | 6e 22 0d 09 09 22 33 30 |"\r\n\r\|n"..."30|
|00000620| 32 20 46 4f 55 4e 44 22 | 20 c7 20 72 65 64 69 72 |2 FOUND"| . redir|
|00000630| 65 63 74 20 68 65 61 64 | 65 72 0d 09 09 09 73 20 |ect head|er....s |
|00000640| 3d 20 22 48 54 54 50 2f | 31 2e 30 20 22 20 2b 20 |= "HTTP/|1.0 " + |
|00000650| 73 74 61 74 75 73 20 2b | 20 22 5c 72 5c 6e 4c 6f |status +| "\r\nLo|
|00000660| 63 61 74 69 6f 6e 3a 20 | 22 20 2b 20 6d 6f 64 69 |cation: |" + modi|
|00000670| 66 69 65 72 20 2b 20 22 | 5c 72 5c 6e 22 20 c7 20 |fier + "|\r\n" . |
|00000680| 6f 6c 64 20 72 65 64 69 | 72 65 63 74 20 73 74 61 |old redi|rect sta|
|00000690| 6e 64 61 72 64 0d 09 09 | 09 73 20 3d 20 73 20 2b |ndard...|.s = s +|
|000006a0| 20 22 55 52 49 3a 20 22 | 20 2b 20 6d 6f 64 69 66 | "URI: "| + modif|
|000006b0| 69 65 72 20 2b 20 22 5c | 72 5c 6e 22 20 c7 20 6e |ier + "\|r\n" . n|
|000006c0| 65 77 20 72 65 64 69 72 | 65 63 74 20 73 74 61 6e |ew redir|ect stan|
|000006d0| 64 61 72 64 0d 09 09 09 | 73 20 3d 20 73 20 2b 20 |dard....|s = s + |
|000006e0| 22 53 65 72 76 65 72 3a | 20 22 20 2b 20 77 65 62 |"Server:| " + web|
|000006f0| 73 65 72 76 65 72 2e 70 | 72 65 66 65 72 65 6e 63 |server.p|referenc|
|00000700| 65 73 2e 73 65 72 76 65 | 72 20 2b 20 22 5c 72 5c |es.serve|r + "\r\|
|00000710| 6e 5c 72 5c 6e 22 0d 09 | 65 6c 73 65 0d 09 09 73 |n\r\n"..|else...s|
|00000720| 20 3d 20 22 48 54 54 50 | 2f 31 2e 30 20 22 20 2b | = "HTTP|/1.0 " +|
|00000730| 20 73 74 61 74 75 73 20 | 2b 20 22 5c 72 5c 6e 53 | status |+ "\r\nS|
|00000740| 65 72 76 65 72 3a 20 22 | 20 2b 20 77 65 62 73 65 |erver: "| + webse|
|00000750| 72 76 65 72 2e 70 72 65 | 66 65 72 65 6e 63 65 73 |rver.pre|ferences|
|00000760| 2e 73 65 72 76 65 72 20 | 2b 20 22 5c 72 5c 6e 22 |.server |+ "\r\n"|
|00000770| 0d 09 09 73 20 3d 20 73 | 20 2b 20 22 4d 49 4d 45 |...s = s| + "MIME|
|00000780| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 5c 72 5c |-Version|: 1.0\r\|
|00000790| 6e 43 6f 6e 74 65 6e 74 | 2d 74 79 70 65 3a 20 22 |nContent|-type: "|
|000007a0| 20 2b 20 6d 6f 64 69 66 | 69 65 72 20 2b 20 22 5c | + modif|ier + "\|
|000007b0| 72 5c 6e 5c 72 5c 6e 22 | 0d 09 72 65 74 75 72 6e |r\n\r\n"|..return|
|000007c0| 20 28 73 29 0d 80 00 00 | 00 00 00 84 00 00 00 00 | (s)....|........|
|000007d0| 00 80 00 00 00 00 00 80 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 80 00 00 | 00 00 00 80 00 00 00 00 |........|........|
|00000800| 00 80 00 00 00 00 00 80 | 00 00 00 00 00 80 00 00 |........|........|
|00000810| 00 00 00 80 00 00 00 00 | 00 80 00 00 00 00 00 80 |........|........|
|00000820| 00 00 00 00 00 80 00 00 | 00 00 00 80 00 00 00 00 |........|........|
|00000830| 00 80 00 00 00 00 00 80 | 00 00 00 00 00 80 00 00 |........|........|
|00000840| 00 00 00 80 00 00 00 00 | 00 80 00 00 00 00 00 00 |........|........|
|00000850| 00 01 00 00 00 07 cf 00 | 00 06 cf 00 00 00 9a 00 |........|........|
|00000860| c8 fb 5c 13 d6 00 00 00 | 1c 00 7e 00 02 53 54 52 |..\.....|..~..STR|
|00000870| 20 00 03 00 1a 73 63 70 | 74 00 00 00 4a 64 61 74 | ....scp|t...Jdat|
|00000880| 61 00 00 00 56 00 80 ff | ff 00 00 00 00 00 00 00 |a...V...|........|
|00000890| 00 bf f4 ff ff 00 00 00 | 0a 00 00 00 00 00 82 ff |........|........|
|000008a0| ff 00 00 01 0b 00 00 00 | 00 00 7f ff ff 00 00 01 |........|........|
|000008b0| 1c 00 00 00 00 00 81 ff | ff 00 00 00 17 00 00 00 |........|........|
|000008c0| 00 23 16 00 00 00 00 01 | 22 00 c8 5f 04 1b 73 75 |.#......|".._..su|
|000008d0| 69 74 65 73 2e 77 65 62 | 73 65 72 76 65 72 2e 68 |ites.web|server.h|
|000008e0| 74 74 70 48 65 61 64 65 | 72 00 00 00 00 00 00 00 |ttpHeade|r.......|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+