home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| exported SGML document text
| default
| |
97%
| file
| exported SGML document, ASCII text
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 53 74 | 61 6e 64 61 72 64 20 4d |ts of St|andard M|
|000000b0| 6f 64 75 6c 65 20 75 72 | 6c 6c 69 62 3c 2f 54 49 |odule ur|llib</TI|
|000000c0| 54 4c 45 3e 0a 0a 3c 4d | 45 54 41 20 48 54 54 50 |TLE>..<M|ETA HTTP|
|000000d0| 2d 45 51 55 49 56 3d 22 | 43 6f 6e 74 65 6e 74 2d |-EQUIV="|Content-|
|000000e0| 54 79 70 65 22 20 43 4f | 4e 54 45 4e 54 3d 22 74 |Type" CO|NTENT="t|
|000000f0| 65 78 74 2f 68 74 6d 6c | 3b 20 63 68 61 72 73 65 |ext/html|; charse|
|00000100| 74 3d 75 74 66 2d 38 22 | 3e 0a 3c 4d 45 54 41 20 |t=utf-8"|>.<META |
|00000110| 4e 41 4d 45 3d 22 76 69 | 65 77 70 6f 72 74 22 20 |NAME="vi|ewport" |
|00000120| 43 4f 4e 54 45 4e 54 3d | 22 77 69 64 74 68 3d 64 |CONTENT=|"width=d|
|00000130| 65 76 69 63 65 2d 77 69 | 64 74 68 2c 20 69 6e 69 |evice-wi|dth, ini|
|00000140| 74 69 61 6c 2d 73 63 61 | 6c 65 3d 31 2e 30 22 3e |tial-sca|le=1.0">|
|00000150| 0a 3c 4d 45 54 41 20 4e | 41 4d 45 3d 22 47 65 6e |.<META N|AME="Gen|
|00000160| 65 72 61 74 6f 72 22 20 | 43 4f 4e 54 45 4e 54 3d |erator" |CONTENT=|
|00000170| 22 4c 61 54 65 58 32 48 | 54 4d 4c 20 76 32 30 32 |"LaTeX2H|TML v202|
|00000180| 32 22 3e 0a 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |2">..<LI|NK REL="|
|00000190| 53 54 59 4c 45 53 48 45 | 45 54 22 20 48 52 45 46 |STYLESHE|ET" HREF|
|000001a0| 3d 22 74 65 78 2e 63 73 | 73 22 3e 0a 0a 3c 4c 49 |="tex.cs|s">..<LI|
|000001b0| 4e 4b 20 52 45 4c 3d 22 | 70 72 65 76 69 6f 75 73 |NK REL="|previous|
|000001c0| 22 20 48 52 45 46 3d 22 | 74 65 78 5f 6d 6e 2e 68 |" HREF="|tex_mn.h|
|000001d0| 74 6d 6c 22 3e 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |tml">.<L|INK REL=|
|000001e0| 22 75 70 22 20 48 52 45 | 46 3d 22 74 65 78 5f 6d |"up" HRE|F="tex_m|
|000001f0| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 2f 48 45 41 44 3e |n.html">|.</HEAD>|
|00000200| 0a 20 0a 3c 42 4f 44 59 | 20 62 67 63 6f 6c 6f 72 |. .<BODY| bgcolor|
|00000210| 3d 22 23 66 66 66 66 66 | 66 22 20 74 65 78 74 3d |="#fffff|f" text=|
|00000220| 22 23 30 30 30 30 30 30 | 22 20 6c 69 6e 6b 3d 22 |"#000000|" link="|
|00000230| 23 39 39 34 34 45 45 22 | 20 76 6c 69 6e 6b 3d 22 |#9944EE"| vlink="|
|00000240| 23 30 30 30 30 66 66 22 | 20 61 6c 69 6e 6b 3d 22 |#0000ff"| alink="|
|00000250| 23 30 30 66 66 30 30 22 | 3e 0a 0a 3c 48 31 3e 3c |#00ff00"|>..<H1><|
|00000260| 41 20 49 44 3d 22 53 45 | 43 54 49 4f 4e 30 30 30 |A ID="SE|CTION000|
|00000270| 31 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |10000000|00000000|
|00000280| 30 22 3e 0a 53 74 61 6e | 64 61 72 64 20 4d 6f 64 |0">.Stan|dard Mod|
|00000290| 75 6c 65 20 75 72 6c 6c | 69 62 3c 2f 41 3e 0a 3c |ule urll|ib</A>.<|
|000002a0| 2f 48 31 3e 0a 75 72 6c | 6c 69 62 0a 3c 41 20 49 |/H1>.url|lib.<A I|
|000002b0| 44 3d 22 33 22 3e 3c 2f | 41 3e 0a 3c 41 20 49 44 |D="3"></|A>.<A ID|
|000002c0| 3d 22 34 22 3e 3c 2f 41 | 3e 0a 3c 41 20 49 44 3d |="4"></A|>.<A ID=|
|000002d0| 22 35 22 3e 3c 2f 41 3e | 0a 0a 3c 50 3e 0a 0a 3c |"5"></A>|..<P>..<|
|000002e0| 50 3e 0a 54 68 69 73 20 | 6d 6f 64 75 6c 65 20 70 |P>.This |module p|
|000002f0| 72 6f 76 69 64 65 73 20 | 61 20 68 69 67 68 2d 6c |rovides |a high-l|
|00000300| 65 76 65 6c 20 69 6e 74 | 65 72 66 61 63 65 20 66 |evel int|erface f|
|00000310| 6f 72 20 66 65 74 63 68 | 69 6e 67 20 64 61 74 61 |or fetch|ing data|
|00000320| 20 61 63 72 6f 73 73 0a | 74 68 65 20 57 6f 72 6c | across.|the Worl|
|00000330| 64 2d 57 69 64 65 20 57 | 65 62 2e 20 20 49 6e 20 |d-Wide W|eb. In |
|00000340| 70 61 72 74 69 63 75 6c | 61 72 2c 20 74 68 65 20 |particul|ar, the |
|00000350| 75 72 6c 6f 70 65 6e 20 | 66 75 6e 63 74 69 6f 6e |urlopen |function|
|00000360| 20 69 73 0a 73 69 6d 69 | 6c 61 72 20 74 6f 20 74 | is.simi|lar to t|
|00000370| 68 65 20 62 75 69 6c 74 | 2d 69 6e 20 66 75 6e 63 |he built|-in func|
|00000380| 74 69 6f 6e 20 6f 70 65 | 6e 2c 20 62 75 74 20 61 |tion ope|n, but a|
|00000390| 63 63 65 70 74 73 20 55 | 52 4c 73 0a 28 55 6e 69 |ccepts U|RLs.(Uni|
|000003a0| 76 65 72 73 61 6c 20 52 | 65 73 6f 75 72 63 65 20 |versal R|esource |
|000003b0| 4c 6f 63 61 74 6f 72 73 | 29 20 69 6e 73 74 65 61 |Locators|) instea|
|000003c0| 64 20 6f 66 20 66 69 6c | 65 6e 61 6d 65 73 2e 20 |d of fil|enames. |
|000003d0| 20 53 6f 6d 65 20 72 65 | 73 74 72 69 63 74 69 6f | Some re|strictio|
|000003e0| 6e 73 0a 61 70 70 6c 79 | 20 26 6d 64 61 73 68 3b |ns.apply| —|
|000003f0| 20 69 74 20 63 61 6e 20 | 6f 6e 6c 79 20 6f 70 65 | it can |only ope|
|00000400| 6e 20 55 52 4c 73 20 66 | 6f 72 20 72 65 61 64 69 |n URLs f|or readi|
|00000410| 6e 67 2c 20 61 6e 64 20 | 6e 6f 20 73 65 65 6b 20 |ng, and |no seek |
|00000420| 6f 70 65 72 61 74 69 6f | 6e 73 0a 61 72 65 20 61 |operatio|ns.are a|
|00000430| 76 61 69 6c 61 62 6c 65 | 2e 0a 0a 3c 50 3e 0a 69 |vailable|...<P>.i|
|00000440| 74 20 64 65 66 69 6e 65 | 73 20 74 68 65 20 66 6f |t define|s the fo|
|00000450| 6c 6c 6f 77 69 6e 67 20 | 70 75 62 6c 69 63 20 66 |llowing |public f|
|00000460| 75 6e 63 74 69 6f 6e 73 | 3a 0a 0a 3c 50 3e 0a 3c |unctions|:..<P>.<|
|00000470| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|00000480| 3d 22 68 65 69 67 68 74 | 3a 20 31 39 36 2e 32 35 |="height|: 196.25|
|00000490| 65 78 3b 20 76 65 72 74 | 69 63 61 6c 2d 61 6c 69 |ex; vert|ical-ali|
|000004a0| 67 6e 3a 20 2d 30 2e 37 | 30 65 78 3b 20 22 20 53 |gn: -0.7|0ex; " S|
|000004b0| 52 43 3d 22 69 6d 67 31 | 2e 70 6e 67 22 0a 20 41 |RC="img1|.png". A|
|000004c0| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |LT="\beg|in{funcd|
|000004d0| 65 73 63 7d 7b 75 72 6c | 6f 70 65 6e 7d 7b 75 72 |esc}{url|open}{ur|
|000004e0| 6c 7d 0a 4f 70 65 6e 20 | 61 20 6e 65 74 77 6f 72 |l}.Open |a networ|
|000004f0| 6b 20 6f 62 6a 65 63 74 | 20 64 65 6e 6f 74 65 64 |k object| denoted|
|00000500| 20 62 79 20 61 20 55 52 | 4c 20 66 6f 72 20 72 65 | by a UR|L for re|
|00000510| 61 64 69 6e 2e 2e 2e 0a | 2e 2e 2e 73 20 74 68 69 |adin....|...s thi|
|00000520| 73 20 69 73 20 48 54 54 | 50 29 2e 20 53 65 65 20 |s is HTT|P). See |
|00000530| 74 68 65 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |the desc|ription |
|00000540| 6f 66 20 74 68 65 0a 5c | 63 6f 64 65 7b 72 66 63 |of the.\|code{rfc|
|00000550| 38 32 32 7d 20 6d 6f 64 | 75 6c 65 2e 0a 5c 65 6e |822} mod|ule..\en|
|00000560| 64 7b 66 75 6e 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |d{funcde|sc}">.<B|
|00000570| 52 3e 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |R>..<P>.|<BR>.<IM|
|00000580| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|00000590| 74 3a 20 32 2e 31 37 65 | 78 3b 20 76 65 72 74 69 |t: 2.17e|x; verti|
|000005a0| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 34 |cal-alig|n: 176.4|
|000005b0| 31 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 32 |1ex; " S|RC="img2|
|000005c0| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|000005d0| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 75 72 6c |in{funcd|esc}{url|
|000005e0| 72 65 74 72 69 65 76 65 | 7d 7b 75 72 6c 7d 0a 43 |retrieve|}{url}.C|
|000005f0| 6f 70 79 20 61 20 6e 65 | 74 77 6f 72 6b 20 6f 62 |opy a ne|twork ob|
|00000600| 6a 65 63 74 20 64 65 6e | 6f 74 65 64 20 62 79 20 |ject den|oted by |
|00000610| 61 20 55 52 4c 20 74 6f | 20 61 20 6c 2e 2e 2e 0a |a URL to| a l....|
|00000620| 2e 2e 2e 6f 73 73 69 62 | 6c 79 0a 63 61 63 68 65 |...ossib|ly.cache|
|00000630| 64 29 2e 20 45 78 63 65 | 70 74 69 6f 6e 73 20 61 |d). Exce|ptions a|
|00000640| 72 65 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 66 |re the s|ame as f|
|00000650| 6f 72 20 5c 63 6f 64 65 | 7b 75 72 6c 6f 70 65 6e |or \code|{urlopen|
|00000660| 28 29 7d 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |()}..\en|d{funcde|
|00000670| 73 63 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |sc}">.<B|R>..<P>.|
|00000680| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|00000690| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 31 37 65 |E="heigh|t: 2.17e|
|000006a0| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|000006b0| 6e 3a 20 31 37 36 2e 34 | 31 65 78 3b 20 22 20 53 |n: 176.4|1ex; " S|
|000006c0| 52 43 3d 22 69 6d 67 33 | 2e 70 6e 67 22 0a 20 41 |RC="img3|.png". A|
|000006d0| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |LT="\beg|in{funcd|
|000006e0| 65 73 63 7d 7b 75 72 6c | 63 6c 65 61 6e 75 70 7d |esc}{url|cleanup}|
|000006f0| 7b 7d 0a 43 6c 65 61 72 | 20 74 68 65 20 63 61 63 |{}.Clear| the cac|
|00000700| 68 65 20 74 68 61 74 20 | 6d 61 79 20 68 61 76 65 |he that |may have|
|00000710| 20 62 65 65 6e 20 62 75 | 69 6c 74 20 75 70 20 62 | been bu|ilt up b|
|00000720| 79 20 70 72 65 76 69 6f | 75 73 20 63 61 6c 6c 73 |y previo|us calls|
|00000730| 20 74 6f 0a 5c 63 6f 64 | 65 7b 75 72 6c 72 65 74 | to.\cod|e{urlret|
|00000740| 72 69 65 76 65 28 29 7d | 2e 0a 5c 65 6e 64 7b 66 |rieve()}|..\end{f|
|00000750| 75 6e 63 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |uncdesc}|">.<BR>.|
|00000760| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|00000770| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00000780| 32 2e 33 38 65 78 3b 20 | 76 65 72 74 69 63 61 6c |2.38ex; |vertical|
|00000790| 2d 61 6c 69 67 6e 3a 20 | 31 37 36 2e 31 39 65 78 |-align: |176.19ex|
|000007a0| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 34 2e 70 6e |; " SRC=|"img4.pn|
|000007b0| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|000007c0| 66 75 6e 63 64 65 73 63 | 7d 7b 71 75 6f 74 65 7d |funcdesc|}{quote}|
|000007d0| 7b 73 74 72 69 6e 67 5c | 6f 70 74 69 6f 6e 61 6c |{string\|optional|
|000007e0| 7b 5c 2c 20 61 64 64 73 | 61 66 65 7d 7d 0a 52 65 |{\, adds|afe}}.Re|
|000007f0| 70 6c 61 63 65 20 73 70 | 65 63 69 61 6c 20 63 68 |place sp|ecial ch|
|00000800| 61 72 61 63 74 65 72 73 | 20 2e 2e 2e 0a 2e 2e 2e |aracters| .......|
|00000810| 6d 70 6c 65 3a 20 5c 63 | 6f 64 65 7b 71 75 6f 74 |mple: \c|ode{quot|
|00000820| 65 28 27 2f 5c 7e 63 6f | 6e 6f 6c 6c 79 2f 27 29 |e('/\~co|nolly/')|
|00000830| 7d 20 79 69 65 6c 64 73 | 20 5c 63 6f 64 65 7b 27 |} yields| \code{'|
|00000840| 2f 5c 25 37 65 63 6f 6e | 6e 6f 6c 6c 79 2f 27 7d |/\%7econ|nolly/'}|
|00000850| 2e 0a 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|00000860| 22 3e 0a 3c 42 52 3e 0a | 0a 3c 50 3e 0a 3c 42 52 |">.<BR>.|.<P>.<BR|
|00000870| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|00000880| 68 65 69 67 68 74 3a 20 | 32 2e 34 35 65 78 3b 20 |height: |2.45ex; |
|00000890| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|000008a0| 31 37 36 2e 32 30 65 78 | 3b 20 22 20 53 52 43 3d |176.20ex|; " SRC=|
|000008b0| 22 69 6d 67 35 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img5.pn|g". ALT=|
|000008c0| 22 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |"\begin{|funcdesc|
|000008d0| 7d 7b 75 6e 71 75 6f 74 | 65 7d 7b 73 74 72 69 6e |}{unquot|e}{strin|
|000008e0| 67 7d 0a 52 65 70 6c 61 | 63 65 20 5c 73 61 6d 70 |g}.Repla|ce \samp|
|000008f0| 7b 5c 25 78 78 7d 20 65 | 73 63 61 70 65 73 20 62 |{\%xx} e|scapes b|
|00000900| 79 20 74 68 65 69 72 20 | 73 69 6e 67 6c 65 2d 63 |y their |single-c|
|00000910| 68 2e 2e 2e 0a 2e 2e 2e | 65 3a 20 5c 63 6f 64 65 |h.......|e: \code|
|00000920| 7b 75 6e 71 75 6f 74 65 | 28 27 2f 5c 25 37 45 63 |{unquote|('/\%7Ec|
|00000930| 6f 6e 6e 6f 6c 6c 79 2f | 27 29 7d 20 79 69 65 6c |onnolly/|')} yiel|
|00000940| 64 73 20 5c 63 6f 64 65 | 7b 27 2f 5c 7e 63 6f 6e |ds \code|{'/\~con|
|00000950| 6e 6f 6c 6c 79 2f 27 7d | 2e 0a 5c 65 6e 64 7b 66 |nolly/'}|..\end{f|
|00000960| 75 6e 63 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |uncdesc}|">.<BR>.|
|00000970| 0a 3c 50 3e 0a 52 65 73 | 74 72 69 63 74 69 6f 6e |.<P>.Res|triction|
|00000980| 73 3a 0a 0a 3c 50 3e 0a | 0a 3c 55 4c 3e 0a 3c 4c |s:..<P>.|.<UL>.<L|
|00000990| 49 3e 43 75 72 72 65 6e | 74 6c 79 2c 20 6f 6e 6c |I>Curren|tly, onl|
|000009a0| 79 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |y the fo|llowing |
|000009b0| 70 72 6f 74 6f 63 6f 6c | 73 20 61 72 65 20 73 75 |protocol|s are su|
|000009c0| 70 70 6f 72 74 65 64 3a | 20 48 54 54 50 2c 20 28 |pported:| HTTP, (|
|000009d0| 76 65 72 73 69 6f 6e 73 | 0a 30 2e 39 20 61 6e 64 |versions|.0.9 and|
|000009e0| 20 31 2e 30 29 2c 20 47 | 6f 70 68 65 72 20 28 62 | 1.0), G|opher (b|
|000009f0| 75 74 20 6e 6f 74 20 47 | 6f 70 68 65 72 2d 2b 29 |ut not G|opher-+)|
|00000a00| 2c 20 46 54 50 2c 20 61 | 6e 64 20 6c 6f 63 61 6c |, FTP, a|nd local|
|00000a10| 20 66 69 6c 65 73 2e 0a | 3c 41 20 49 44 3d 22 36 | files..|<A ID="6|
|00000a20| 31 22 3e 3c 2f 41 3e 0a | 3c 41 20 49 44 3d 22 36 |1"></A>.|<A ID="6|
|00000a30| 32 22 3e 3c 2f 41 3e 0a | 3c 41 20 49 44 3d 22 36 |2"></A>.|<A ID="6|
|00000a40| 33 22 3e 3c 2f 41 3e 0a | 0a 3c 50 3e 0a 3c 2f 4c |3"></A>.|.<P>.</L|
|00000a50| 49 3e 0a 3c 4c 49 3e 54 | 68 65 20 63 61 63 68 69 |I>.<LI>T|he cachi|
|00000a60| 6e 67 20 66 65 61 74 75 | 72 65 20 6f 66 20 75 72 |ng featu|re of ur|
|00000a70| 6c 72 65 74 72 69 65 76 | 65 28 29 20 68 61 73 20 |lretriev|e() has |
|00000a80| 62 65 65 6e 20 64 69 73 | 61 62 6c 65 64 20 75 6e |been dis|abled un|
|00000a90| 74 69 6c 20 49 0a 66 69 | 6e 64 20 74 68 65 20 74 |til I.fi|nd the t|
|00000aa0| 69 6d 65 20 74 6f 20 68 | 61 63 6b 20 70 72 6f 70 |ime to h|ack prop|
|00000ab0| 65 72 20 70 72 6f 63 65 | 73 73 69 6e 67 20 6f 66 |er proce|ssing of|
|00000ac0| 20 45 78 70 69 72 61 74 | 69 6f 6e 20 74 69 6d 65 | Expirat|ion time|
|00000ad0| 20 68 65 61 64 65 72 73 | 2e 0a 0a 3c 50 3e 0a 3c | headers|...<P>.<|
|00000ae0| 2f 4c 49 3e 0a 3c 4c 49 | 3e 54 68 65 72 65 20 73 |/LI>.<LI|>There s|
|00000af0| 68 6f 75 6c 64 20 62 65 | 20 61 20 66 75 6e 63 74 |hould be| a funct|
|00000b00| 69 6f 6e 20 74 6f 20 71 | 75 65 72 79 20 77 68 65 |ion to q|uery whe|
|00000b10| 74 68 65 72 20 61 20 70 | 61 72 74 69 63 75 6c 61 |ther a p|articula|
|00000b20| 72 20 55 52 4c 20 69 73 | 20 69 6e 0a 74 68 65 20 |r URL is| in.the |
|00000b30| 63 61 63 68 65 2e 0a 0a | 3c 50 3e 0a 3c 2f 4c 49 |cache...|<P>.</LI|
|00000b40| 3e 0a 3c 4c 49 3e 46 6f | 72 20 62 61 63 6b 77 61 |>.<LI>Fo|r backwa|
|00000b50| 72 64 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |rd compa|tibility|
|00000b60| 2c 20 69 66 20 61 20 55 | 52 4c 20 61 70 70 65 61 |, if a U|RL appea|
|00000b70| 72 73 20 74 6f 20 70 6f | 69 6e 74 20 74 6f 20 61 |rs to po|int to a|
|00000b80| 20 6c 6f 63 61 6c 20 66 | 69 6c 65 0a 62 75 74 20 | local f|ile.but |
|00000b90| 74 68 65 20 66 69 6c 65 | 20 63 61 6e 27 74 20 62 |the file| can't b|
|00000ba0| 65 20 6f 70 65 6e 65 64 | 2c 20 74 68 65 20 55 52 |e opened|, the UR|
|00000bb0| 4c 20 69 73 20 72 65 2d | 69 6e 74 65 72 70 72 65 |L is re-|interpre|
|00000bc0| 74 65 64 20 75 73 69 6e | 67 20 74 68 65 20 46 54 |ted usin|g the FT|
|00000bd0| 50 0a 70 72 6f 74 6f 63 | 6f 6c 2e 20 20 54 68 69 |P.protoc|ol. Thi|
|00000be0| 73 20 63 61 6e 20 73 6f | 6d 65 74 69 6d 65 73 20 |s can so|metimes |
|00000bf0| 63 61 75 73 65 20 63 6f | 6e 66 75 73 69 6e 67 20 |cause co|nfusing |
|00000c00| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 73 2e 0a |error me|ssages..|
|00000c10| 0a 3c 50 3e 0a 3c 2f 4c | 49 3e 0a 3c 4c 49 3e 54 |.<P>.</L|I>.<LI>T|
|00000c20| 68 65 20 75 72 6c 6f 70 | 65 6e 28 29 20 61 6e 64 |he urlop|en() and|
|00000c30| 20 75 72 6c 72 65 74 72 | 69 65 76 65 28 29 20 66 | urlretr|ieve() f|
|00000c40| 75 6e 63 74 69 6f 6e 73 | 20 63 61 6e 20 63 61 75 |unctions| can cau|
|00000c50| 73 65 0a 61 72 62 69 74 | 72 61 72 69 6c 79 20 6c |se.arbit|rarily l|
|00000c60| 6f 6e 67 20 64 65 6c 61 | 79 73 20 77 68 69 6c 65 |ong dela|ys while|
|00000c70| 20 77 61 69 74 69 6e 67 | 20 66 6f 72 20 61 20 6e | waiting| for a n|
|00000c80| 65 74 77 6f 72 6b 20 63 | 6f 6e 6e 65 63 74 69 6f |etwork c|onnectio|
|00000c90| 6e 20 74 6f 20 62 65 0a | 73 65 74 20 75 70 2e 20 |n to be.|set up. |
|00000ca0| 20 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 | This me|ans that|
|00000cb0| 20 69 74 20 69 73 20 64 | 69 66 66 69 63 75 6c 74 | it is d|ifficult|
|00000cc0| 20 74 6f 20 62 75 69 6c | 64 20 61 6e 20 69 6e 74 | to buil|d an int|
|00000cd0| 65 72 61 63 74 69 76 65 | 0a 77 65 62 20 63 6c 69 |eractive|.web cli|
|00000ce0| 65 6e 74 20 75 73 69 6e | 67 20 74 68 65 73 65 20 |ent usin|g these |
|00000cf0| 66 75 6e 63 74 69 6f 6e | 73 20 77 69 74 68 6f 75 |function|s withou|
|00000d00| 74 20 75 73 69 6e 67 20 | 74 68 72 65 61 64 73 2e |t using |threads.|
|00000d10| 0a 0a 3c 50 3e 0a 3c 2f | 4c 49 3e 0a 3c 4c 49 3e |..<P>.</|LI>.<LI>|
|00000d20| 54 68 65 20 64 61 74 61 | 20 72 65 74 75 72 6e 65 |The data| returne|
|00000d30| 64 20 62 79 20 75 72 6c | 6f 70 65 6e 28 29 20 6f |d by url|open() o|
|00000d40| 72 20 75 72 6c 72 65 74 | 72 69 65 76 65 28 29 20 |r urlret|rieve() |
|00000d50| 69 73 20 74 68 65 0a 72 | 61 77 20 64 61 74 61 20 |is the.r|aw data |
|00000d60| 72 65 74 75 72 6e 65 64 | 20 62 79 20 74 68 65 20 |returned| by the |
|00000d70| 73 65 72 76 65 72 2e 20 | 20 54 68 69 73 20 6d 61 |server. | This ma|
|00000d80| 79 20 62 65 20 62 69 6e | 61 72 79 20 64 61 74 61 |y be bin|ary data|
|00000d90| 20 28 65 2e 67 2e 20 61 | 6e 0a 69 6d 61 67 65 29 | (e.g. a|n.image)|
|00000da0| 2c 20 70 6c 61 69 6e 20 | 74 65 78 74 20 6f 72 20 |, plain |text or |
|00000db0| 28 66 6f 72 20 65 78 61 | 6d 70 6c 65 29 20 48 54 |(for exa|mple) HT|
|00000dc0| 4d 4c 2e 20 20 54 68 65 | 20 48 54 54 50 20 70 72 |ML. The| HTTP pr|
|00000dd0| 6f 74 6f 63 6f 6c 20 70 | 72 6f 76 69 64 65 73 0a |otocol p|rovides.|
|00000de0| 74 79 70 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |type inf|ormation|
|00000df0| 20 69 6e 20 74 68 65 20 | 72 65 70 6c 79 20 68 65 | in the |reply he|
|00000e00| 61 64 65 72 2c 20 77 68 | 69 63 68 20 63 61 6e 20 |ader, wh|ich can |
|00000e10| 62 65 20 69 6e 73 70 65 | 63 74 65 64 20 62 79 0a |be inspe|cted by.|
|00000e20| 6c 6f 6f 6b 69 6e 67 20 | 61 74 20 74 68 65 20 43 |looking |at the C|
|00000e30| 6f 6e 74 65 6e 74 2d 74 | 79 70 65 20 68 65 61 64 |ontent-t|ype head|
|00000e40| 65 72 2e 20 20 46 6f 72 | 20 74 68 65 20 47 6f 70 |er. For| the Gop|
|00000e50| 68 65 72 20 70 72 6f 74 | 6f 63 6f 6c 2c 0a 74 79 |her prot|ocol,.ty|
|00000e60| 70 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |pe infor|mation i|
|00000e70| 73 20 65 6e 63 6f 64 65 | 64 20 69 6e 20 74 68 65 |s encode|d in the|
|00000e80| 20 55 52 4c 3b 20 74 68 | 65 72 65 20 69 73 20 63 | URL; th|ere is c|
|00000e90| 75 72 72 65 6e 74 6c 79 | 20 6e 6f 20 65 61 73 79 |urrently| no easy|
|00000ea0| 20 77 61 79 0a 74 6f 20 | 65 78 74 72 61 63 74 20 | way.to |extract |
|00000eb0| 69 74 2e 20 20 49 66 20 | 74 68 65 20 72 65 74 75 |it. If |the retu|
|00000ec0| 72 6e 65 64 20 64 61 74 | 61 20 69 73 20 48 54 4d |rned dat|a is HTM|
|00000ed0| 4c 2c 20 79 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |L, you c|an use t|
|00000ee0| 68 65 20 6d 6f 64 75 6c | 65 0a 68 74 6d 6c 6c 69 |he modul|e.htmlli|
|00000ef0| 62 20 74 6f 20 70 61 72 | 73 65 20 69 74 2e 0a 3c |b to par|se it..<|
|00000f00| 41 20 49 44 3d 22 37 31 | 22 3e 3c 2f 41 3e 0a 3c |A ID="71|"></A>.<|
|00000f10| 41 20 49 44 3d 22 37 32 | 22 3e 3c 2f 41 3e 0a 3c |A ID="72|"></A>.<|
|00000f20| 41 20 49 44 3d 22 37 33 | 22 3e 3c 2f 41 3e 0a 68 |A ID="73|"></A>.h|
|00000f30| 74 6d 6c 6c 69 62 0a 0a | 3c 50 3e 0a 3c 2f 4c 49 |tmllib..|<P>.</LI|
|00000f40| 3e 0a 3c 4c 49 3e 41 6c | 74 68 6f 75 67 68 20 74 |>.<LI>Al|though t|
|00000f50| 68 65 20 75 72 6c 6c 69 | 62 20 6d 6f 64 75 6c 65 |he urlli|b module|
|00000f60| 20 63 6f 6e 74 61 69 6e | 73 20 28 75 6e 64 6f 63 | contain|s (undoc|
|00000f70| 75 6d 65 6e 74 65 64 29 | 20 72 6f 75 74 69 6e 65 |umented)| routine|
|00000f80| 73 20 74 6f 0a 70 61 72 | 73 65 20 61 6e 64 20 75 |s to.par|se and u|
|00000f90| 6e 70 61 72 73 65 20 55 | 52 4c 20 73 74 72 69 6e |nparse U|RL strin|
|00000fa0| 67 73 2c 20 74 68 65 20 | 72 65 63 6f 6d 6d 65 6e |gs, the |recommen|
|00000fb0| 64 65 64 20 69 6e 74 65 | 72 66 61 63 65 20 66 6f |ded inte|rface fo|
|00000fc0| 72 20 55 52 4c 0a 6d 61 | 6e 69 70 75 6c 61 74 69 |r URL.ma|nipulati|
|00000fd0| 6f 6e 20 69 73 20 69 6e | 20 6d 6f 64 75 6c 65 20 |on is in| module |
|00000fe0| 75 72 6c 70 61 72 73 65 | 2e 0a 75 72 6c 70 61 72 |urlparse|..urlpar|
|00000ff0| 73 65 0a 0a 3c 50 3e 0a | 3c 2f 4c 49 3e 0a 3c 2f |se..<P>.|</LI>.</|
|00001000| 55 4c 3e 0a 3c 48 52 3e | 0a 0a 3c 2f 42 4f 44 59 |UL>.<HR>|..</BODY|
|00001010| 3e 0a 3c 2f 48 54 4d 4c | 3e 0a |>.</HTML|>. |
+--------+-------------------------+-------------------------+--------+--------+