home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / w3 / urlauth.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  6.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 34 39 3a 30 | 30 20 31 39 39 35 0a 3b | 14:49:0|0 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 65 78 |;; from |file /ex|
|00000060| 70 6f 72 74 2f 77 69 6c | 6c 6f 77 33 2f 78 65 6d |port/wil|low3/xem|
|00000070| 61 63 73 2d 31 39 2e 31 | 33 2d 72 65 6c 65 61 73 |acs-19.1|3-releas|
|00000080| 65 2f 65 64 69 74 6f 72 | 2f 6c 69 73 70 2f 77 33 |e/editor|/lisp/w3|
|00000090| 2f 75 72 6c 61 75 74 68 | 2e 65 6c 0a 3b 3b 3b 20 |/urlauth|.el.;;; |
|000000a0| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 31 39 |emacs ve|rsion 19|
|000000b0| 2e 31 33 20 58 45 6d 61 | 63 73 20 4c 75 63 69 64 |.13 XEma|cs Lucid|
|000000c0| 2e 0a 3b 3b 3b 20 62 79 | 74 65 63 6f 6d 70 20 76 |..;;; by|tecomp v|
|000000d0| 65 72 73 69 6f 6e 20 32 | 2e 32 35 3b 20 31 2d 53 |ersion 2|.25; 1-S|
|000000e0| 65 70 2d 39 34 2e 0a 3b | 3b 3b 20 6f 70 74 69 6d |ep-94..;|;; optim|
|000000f0| 69 7a 61 74 69 6f 6e 20 | 69 73 20 6f 6e 2e 0a 3b |ization |is on..;|
|00000100| 3b 3b 20 74 68 69 73 20 | 66 69 6c 65 20 75 73 65 |;; this |file use|
|00000110| 73 20 6f 70 63 6f 64 65 | 73 20 77 68 69 63 68 20 |s opcode|s which |
|00000120| 64 6f 20 6e 6f 74 20 65 | 78 69 73 74 20 69 6e 20 |do not e|xist in |
|00000130| 45 6d 61 63 73 20 31 38 | 2e 0a 0a 28 69 66 20 28 |Emacs 18|...(if (|
|00000140| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 6d 61 |and (bou|ndp 'ema|
|00000150| 63 73 2d 76 65 72 73 69 | 6f 6e 29 0a 09 20 28 6f |cs-versi|on).. (o|
|00000160| 72 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |r (and (|boundp '|
|00000170| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 20 |epoch::v|ersion) |
|00000180| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 0a |epoch::v|ersion).|
|00000190| 09 20 20 20 20 20 28 73 | 74 72 69 6e 67 2d 6c 65 |. (s|tring-le|
|000001a0| 73 73 70 20 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |ssp emac|s-versio|
|000001b0| 6e 20 22 31 39 22 29 29 | 29 0a 20 20 20 20 28 65 |n "19"))|). (e|
|000001c0| 72 72 6f 72 20 22 54 68 | 69 73 20 66 69 6c 65 20 |rror "Th|is file |
|000001d0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001e0| 20 45 6d 61 63 73 20 31 | 39 2e 22 29 29 0a 0a 28 | Emacs 1|9."))..(|
|000001f0| 64 65 66 76 61 72 20 75 | 72 6c 2d 62 61 73 69 63 |defvar u|rl-basic|
|00000200| 2d 61 75 74 68 2d 73 74 | 6f 72 61 67 65 20 6e 69 |-auth-st|orage ni|
|00000210| 6c 20 22 5c 0a 57 68 65 | 72 65 20 75 73 65 72 6e |l "\.Whe|re usern|
|00000220| 61 6d 65 73 20 61 6e 64 | 20 70 61 73 73 77 6f 72 |ames and| passwor|
|00000230| 64 73 20 61 72 65 20 73 | 74 6f 72 65 64 2e 20 20 |ds are s|tored. |
|00000240| 49 74 73 20 76 61 6c 75 | 65 20 69 73 20 61 6e 20 |Its valu|e is an |
|00000250| 61 73 73 6f 63 20 6c 69 | 73 74 20 6f 66 0a 61 73 |assoc li|st of.as|
|00000260| 73 6f 63 20 6c 69 73 74 | 73 2e 20 20 54 68 65 20 |soc list|s. The |
|00000270| 66 69 72 73 74 20 61 73 | 73 6f 63 20 6c 69 73 74 |first as|soc list|
|00000280| 20 69 73 20 6b 65 79 65 | 64 20 62 79 20 74 68 65 | is keye|d by the|
|00000290| 20 73 65 72 76 65 72 20 | 6e 61 6d 65 2e 20 20 54 | server |name. T|
|000002a0| 68 65 20 63 64 72 20 6f | 66 0a 74 68 69 73 20 69 |he cdr o|f.this i|
|000002b0| 73 20 61 6e 20 61 73 73 | 6f 63 20 6c 69 73 74 20 |s an ass|oc list |
|000002c0| 62 61 73 65 64 20 6f 6e | 20 74 68 65 20 27 64 69 |based on| the 'di|
|000002d0| 72 65 63 74 6f 72 79 27 | 20 73 70 65 63 69 66 69 |rectory'| specifi|
|000002e0| 65 64 20 62 79 20 74 68 | 65 20 75 72 6c 20 77 65 |ed by th|e url we|
|000002f0| 20 61 72 65 0a 6c 6f 6f | 6b 69 6e 67 20 75 70 2e | are.loo|king up.|
|00000300| 22 29 0a 28 66 73 65 74 | 20 27 75 72 6c 2d 62 61 |").(fset| 'url-ba|
|00000310| 73 69 63 2d 61 75 74 68 | 20 23 5b 28 75 72 6c 20 |sic-auth| #[(url |
|00000320| 26 6f 70 74 69 6f 6e 61 | 6c 20 70 72 6f 6d 70 74 |&optiona|l prompt|
|00000330| 20 6f 76 65 72 77 72 69 | 74 65 20 72 65 61 6c 6d | overwri|te realm|
|00000340| 20 61 72 67 73 29 20 22 | 08 3b ab 85 c1 08 21 aa | args) "|.;....!.|
|00000350| 81 08 89 1a c3 48 ae 81 | 0c 1d 5c 6e c6 48 ae 90 |.....H..|..\n.H..|
|00000360| 5c 6e c7 48 ab 8a c8 5c | 6e c9 48 0e 5c 6e 5c 22 |\n.H...\|n.H.\n\"|
|00000370| a3 ae 81 cb 1e 0c 5c 6e | cd 48 1e 0e cf 1e 10 cf |......\n|.H......|
|00000380| 1e 11 cf 1e 12 cf 1e 13 | cf 1e 14 0d d5 0e 0c 51 |........|.......Q|
|00000390| 15 0e 16 ab 84 0e 16 aa | 8f d7 d8 0e 0e 5c 22 ab |........|.....\".|
|000003a0| 84 0e 0e aa 84 d9 0e 0e | 21 16 0e c8 0d 0e 1a 5c |........|!......\|
|000003b0| 22 a3 16 12 0e 1b ab aa | 0e 12 ac a6 dc dd de 20 |".......|....... |
|000003c0| 5c 22 16 10 0e 1f e0 21 | 16 11 0d 0e 0e e1 e2 e3 |\".....!|........|
|000003d0| 0e 10 0e 11 23 21 89 16 | 13 42 44 0e 1a 42 16 1a |....#!..|.BD..B..|
|000003e0| 82 1e 01 0e 12 83 1b 01 | c8 0e 0e 0e 12 5c 22 a3 |........|.....\".|
|000003f0| 89 16 13 ac bf d7 e4 0e | 0e 5c 22 ab b8 0e 12 ab |........|.\".....|
|00000400| b4 0e 13 ac b0 0e 12 40 | 40 16 14 d7 e4 0e 14 5c |.......@|@......\|
|00000410| 22 ab 95 0e 0e 47 0e 14 | 47 59 ab 92 0e 14 0e 0e |"....G..|GY......|
|00000420| c9 0e 14 47 4f 98 ab 86 | 0e 12 40 41 16 13 0e 12 |...GO...|..@A....|
|00000430| 41 89 16 12 ac 4c 0e 13 | ac 84 0e 1b ac 84 0e 25 |A....L..|.......%|
|00000440| ab b0 dc dd de 20 5c 22 | 16 10 0e 1f e0 21 16 11 |..... \"|.....!..|
|00000450| e1 e2 e3 0e 10 0e 11 23 | 21 16 13 c8 0d 0e 1a 5c |.......#|!......\|
|00000460| 22 89 16 12 0e 0e 0e 13 | 42 0e 12 41 42 a1 88 aa |".......|B..AB...|
|00000470| 83 cf 16 13 0e 13 ab 86 | e6 0e 13 50 16 13 0e 13 |........|...P....|
|00000480| 2e 09 87 22 20 5b 75 72 | 6c 20 75 72 6c 2d 67 65 |..." [ur|l url-ge|
|00000490| 6e 65 72 69 63 2d 70 61 | 72 73 65 2d 75 72 6c 20 |neric-pa|rse-url |
|000004a0| 68 72 65 66 20 33 20 75 | 72 6c 2d 63 75 72 72 65 |href 3 u|rl-curre|
|000004b0| 6e 74 2d 73 65 72 76 65 | 72 20 73 65 72 76 65 72 |nt-serve|r server|
|000004c0| 20 34 20 37 20 61 73 73 | 6f 63 20 30 20 75 72 6c | 4 7 ass|oc 0 url|
|000004d0| 2d 64 65 66 61 75 6c 74 | 2d 70 6f 72 74 73 20 22 |-default|-ports "|
|000004e0| 38 30 22 20 70 6f 72 74 | 20 35 20 70 61 74 68 20 |80" port| 5 path |
|000004f0| 6e 69 6c 20 75 73 65 72 | 20 70 61 73 73 20 62 79 |nil user| pass by|
|00000500| 73 65 72 76 20 72 65 74 | 76 61 6c 20 64 61 74 61 |serv ret|val data|
|00000510| 20 22 3a 22 20 72 65 61 | 6c 6d 20 73 74 72 69 6e | ":" rea|lm strin|
|00000520| 67 2d 6d 61 74 63 68 20 | 22 2f 24 22 20 75 72 6c |g-match |"/$" url|
|00000530| 2d 62 61 73 65 70 61 74 | 68 20 75 72 6c 2d 62 61 |-basepat|h url-ba|
|00000540| 73 69 63 2d 61 75 74 68 | 2d 73 74 6f 72 61 67 65 |sic-auth|-storage|
|00000550| 20 70 72 6f 6d 70 74 20 | 72 65 61 64 2d 73 74 72 | prompt |read-str|
|00000560| 69 6e 67 20 22 55 73 65 | 72 6e 61 6d 65 3a 20 22 |ing "Use|rname: "|
|00000570| 20 75 73 65 72 2d 72 65 | 61 6c 2d 6c 6f 67 69 6e | user-re|al-login|
|00000580| 2d 6e 61 6d 65 20 75 72 | 6c 2d 70 61 73 73 77 64 |-name ur|l-passwd|
|00000590| 2d 65 6e 74 72 79 2d 66 | 75 6e 63 20 22 50 61 73 |-entry-f|unc "Pas|
|000005a0| 73 77 6f 72 64 3a 20 22 | 20 62 61 73 65 36 34 2d |sword: "| base64-|
|000005b0| 65 6e 63 6f 64 65 20 66 | 6f 72 6d 61 74 20 22 25 |encode f|ormat "%|
|000005c0| 73 3a 25 73 22 20 22 2f | 22 20 6f 76 65 72 77 72 |s:%s" "/|" overwr|
|000005d0| 69 74 65 20 22 42 61 73 | 69 63 20 22 5d 20 38 20 |ite "Bas|ic "] 8 |
|000005e0| 22 5c 0a 47 65 74 20 74 | 68 65 20 75 73 65 72 6e |"\.Get t|he usern|
|000005f0| 61 6d 65 2f 70 61 73 73 | 77 6f 72 64 20 66 6f 72 |ame/pass|word for|
|00000600| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 55 | the spe|cified U|
|00000610| 52 4c 2e 0a 49 66 20 6f | 70 74 69 6f 6e 61 6c 20 |RL..If o|ptional |
|00000620| 61 72 67 75 6d 65 6e 74 | 20 50 52 4f 4d 50 54 20 |argument| PROMPT |
|00000630| 69 73 20 6e 6f 6e 2d 6e | 69 6c 2c 20 61 73 6b 20 |is non-n|il, ask |
|00000640| 66 6f 72 20 74 68 65 20 | 75 73 65 72 6e 61 6d 65 |for the |username|
|00000650| 2f 70 61 73 73 77 6f 72 | 64 0a 74 6f 20 75 73 65 |/passwor|d.to use|
|00000660| 20 66 6f 72 20 74 68 65 | 20 75 72 6c 20 61 6e 64 | for the| url and|
|00000670| 20 69 74 73 20 64 65 73 | 63 65 6e 64 61 6e 74 73 | its des|cendants|
|00000680| 2e 20 20 49 66 20 6f 70 | 74 69 6f 6e 61 6c 20 74 |. If op|tional t|
|00000690| 68 69 72 64 20 61 72 67 | 75 6d 65 6e 74 0a 4f 56 |hird arg|ument.OV|
|000006a0| 45 52 57 52 49 54 45 20 | 69 73 20 6e 6f 6e 2d 6e |ERWRITE |is non-n|
|000006b0| 69 6c 2c 20 6f 76 65 72 | 77 72 69 74 65 20 74 68 |il, over|write th|
|000006c0| 65 20 6f 6c 64 20 75 73 | 65 72 6e 61 6d 65 2f 70 |e old us|ername/p|
|000006d0| 61 73 73 77 6f 72 64 20 | 70 61 69 72 20 69 66 20 |assword |pair if |
|000006e0| 69 74 0a 69 73 20 66 6f | 75 6e 64 20 69 6e 20 74 |it.is fo|und in t|
|000006f0| 68 65 20 61 73 73 6f 63 | 20 6c 69 73 74 2e 20 20 |he assoc| list. |
|00000700| 49 66 20 52 45 41 4c 4d | 20 69 73 20 73 70 65 63 |If REALM| is spec|
|00000710| 69 66 69 65 64 2c 20 75 | 73 65 20 74 68 61 74 20 |ified, u|se that |
|00000720| 61 73 20 74 68 65 20 72 | 65 61 6c 6d 0a 69 6e 73 |as the r|ealm.ins|
|00000730| 74 65 61 64 20 6f 66 20 | 74 68 65 20 70 61 74 68 |tead of |the path|
|00000740| 6e 61 6d 65 20 69 6e 68 | 65 72 69 74 61 6e 63 65 |name inh|eritance|
|00000750| 20 6d 65 74 68 6f 64 2e | 22 5d 29 0a 28 64 65 66 | method.|"]).(def|
|00000760| 76 61 72 20 75 72 6c 2d | 64 69 67 65 73 74 2d 61 |var url-|digest-a|
|00000770| 75 74 68 2d 73 74 6f 72 | 61 67 65 20 6e 69 6c 20 |uth-stor|age nil |
|00000780| 22 5c 0a 57 68 65 72 65 | 20 75 73 65 72 6e 61 6d |"\.Where| usernam|
|00000790| 65 73 20 61 6e 64 20 70 | 61 73 73 77 6f 72 64 73 |es and p|asswords|
|000007a0| 20 61 72 65 20 73 74 6f | 72 65 64 2e 20 20 49 74 | are sto|red. It|
|000007b0| 73 20 76 61 6c 75 65 20 | 69 73 20 61 6e 20 61 73 |s value |is an as|
|000007c0| 73 6f 63 20 6c 69 73 74 | 20 6f 66 0a 61 73 73 6f |soc list| of.asso|
|000007d0| 63 20 6c 69 73 74 73 2e | 20 20 54 68 65 20 66 69 |c lists.| The fi|
|000007e0| 72 73 74 20 61 73 73 6f | 63 20 6c 69 73 74 20 69 |rst asso|c list i|
|000007f0| 73 20 6b 65 79 65 64 20 | 62 79 20 74 68 65 20 73 |s keyed |by the s|
|00000800| 65 72 76 65 72 20 6e 61 | 6d 65 2e 20 20 54 68 65 |erver na|me. The|
|00000810| 20 63 64 72 20 6f 66 0a | 74 68 69 73 20 69 73 20 | cdr of.|this is |
|00000820| 61 6e 20 61 73 73 6f 63 | 20 6c 69 73 74 20 62 61 |an assoc| list ba|
|00000830| 73 65 64 20 6f 6e 20 74 | 68 65 20 27 64 69 72 65 |sed on t|he 'dire|
|00000840| 63 74 6f 72 79 27 20 73 | 70 65 63 69 66 69 65 64 |ctory' s|pecified|
|00000850| 20 62 79 20 74 68 65 20 | 75 72 6c 20 77 65 20 61 | by the |url we a|
|00000860| 72 65 0a 6c 6f 6f 6b 69 | 6e 67 20 75 70 2e 22 29 |re.looki|ng up.")|
|00000870| 0a 28 66 73 65 74 20 27 | 75 72 6c 2d 64 69 67 65 |.(fset '|url-dige|
|00000880| 73 74 2d 61 75 74 68 2d | 63 72 65 61 74 65 2d 6b |st-auth-|create-k|
|00000890| 65 79 20 23 5b 28 75 73 | 65 72 6e 61 6d 65 20 70 |ey #[(us|ername p|
|000008a0| 61 73 73 77 6f 72 64 20 | 72 65 61 6c 6d 20 6d 65 |assword |realm me|
|000008b0| 74 68 6f 64 20 75 72 69 | 29 20 22 08 3b ab 85 c1 |thod uri|) ".;...|
|000008c0| 08 21 aa 81 08 1a c3 0c | c5 0e 06 c5 0e 07 b0 05 |.!......|........|
|000008d0| 21 1e 08 c3 0e 09 c5 5c | 6e ca 48 51 21 1e 0b 0e |!......\|n.HQ!...|
|000008e0| 08 0e 0b 2b 44 87 22 20 | 5b 75 72 69 20 75 72 6c |...+D." |[uri url|
|000008f0| 2d 67 65 6e 65 72 69 63 | 2d 70 61 72 73 65 2d 75 |-generic|-parse-u|
|00000900| 72 6c 20 69 6e 66 6f 20 | 6d 64 35 20 75 73 65 72 |rl info |md5 user|
|00000910| 6e 61 6d 65 20 22 3a 22 | 20 72 65 61 6c 6d 20 70 |name ":"| realm p|
|00000920| 61 73 73 77 6f 72 64 20 | 61 31 20 6d 65 74 68 6f |assword |a1 metho|
|00000930| 64 20 35 20 61 32 5d 20 | 36 20 22 5c 0a 43 72 65 |d 5 a2] |6 "\.Cre|
|00000940| 61 74 65 20 61 20 6b 65 | 79 20 66 6f 72 20 64 69 |ate a ke|y for di|
|00000950| 67 65 73 74 20 61 75 74 | 68 65 6e 74 69 63 61 74 |gest aut|henticat|
|00000960| 69 6f 6e 20 6d 65 74 68 | 6f 64 22 5d 29 0a 28 66 |ion meth|od"]).(f|
|00000970| 73 65 74 20 27 75 72 6c | 2d 64 69 67 65 73 74 2d |set 'url|-digest-|
|00000980| 61 75 74 68 20 23 5b 28 | 75 72 6c 20 26 6f 70 74 |auth #[(|url &opt|
|00000990| 69 6f 6e 61 6c 20 70 72 | 6f 6d 70 74 20 6f 76 65 |ional pr|ompt ove|
|000009a0| 72 77 72 69 74 65 20 72 | 65 61 6c 6d 20 61 72 67 |rwrite r|ealm arg|
|000009b0| 73 29 20 22 08 85 79 01 | 09 3b ab 85 c2 09 21 aa |s) "..y.|.;....!.|
|000009c0| 81 09 89 1b c4 48 ae 81 | 0d 1e 06 0b c7 48 ae 90 |.....H..|.....H..|
|000009d0| 0b c8 48 ab 8a c9 0b ca | 48 0e 0b 5c 22 a3 ae 81 |..H.....|H..\"...|
|000009e0| cc 1e 0d 0b ce 48 1e 0f | d0 1e 11 d0 1e 12 d0 1e |.....H..|........|
|000009f0| 13 d0 1e 14 d0 1e 15 0e | 16 ab 84 0e 16 aa 8f d7 |........|........|
|00000a00| d8 0e 0f 5c 22 ab 84 0e | 0f aa 84 d9 0e 0f 21 16 |...\"...|......!.|
|00000a10| 0f 0e 06 da 0e 0d 51 16 | 06 c9 0e 06 0e 1b 5c 22 |......Q.|......\"|
|00000a20| a3 16 13 0e 1c ab b3 0e | 13 ac af dd de df 20 5c |........|...... \|
|00000a30| 22 16 11 0e 20 e1 21 16 | 12 0e 06 0e 0f 0e 11 e2 |"... .!.|........|
|00000a40| 0e 11 0e 12 0e 16 0e 23 | ae 81 e4 09 25 42 89 16 |.......#|....%B..|
|00000a50| 14 42 44 0e 1b 42 16 1b | 82 3b 01 0e 13 83 38 01 |.BD..B..|.;....8.|
|00000a60| c9 0e 0f 0e 13 5c 22 a3 | 89 16 14 ac bf d7 e5 0e |.....\".|........|
|00000a70| 0f 5c 22 ab b8 0e 13 ab | b4 0e 14 ac b0 0e 13 40 |.\".....|.......@|
|00000a80| 40 16 15 d7 e5 0e 15 5c | 22 ab 95 0e 0f 47 0e 15 |@......\|"....G..|
|00000a90| 47 59 ab 92 0e 15 0e 0f | ca 0e 15 47 4f 98 ab 86 |GY......|...GO...|
|00000aa0| 0e 13 40 41 16 14 0e 13 | 41 89 16 13 ac 4c 0e 14 |..@A....|A....L..|
|00000ab0| ac 84 0e 1c ac 84 0e 26 | ab bc dd de df 20 5c 22 |.......&|..... \"|
|00000ac0| 16 11 0e 20 e1 21 16 12 | 0e 11 e2 0e 11 0e 12 0e |... .!..|........|
|00000ad0| 16 0e 23 ae 81 e4 09 25 | 42 89 16 14 16 14 c9 0e |..#....%|B.......|
|00000ae0| 06 0e 1b 5c 22 89 16 13 | 0e 0f 0e 14 42 0e 13 41 |...\"...|....B..A|
|00000af0| 42 a1 88 aa 83 d0 16 14 | 0e 14 ad b8 c9 e7 08 5c |B.......|.......\|
|00000b00| 22 a3 ae 81 e8 c9 e9 08 | 5c 22 a3 ae 81 e8 1e 2a |".......|\".....*|
|00000b10| 1e 2b ec ed ee ef 51 0e | 14 40 0e 16 0e 2b 0b ce |.+....Q.|.@...+..|
|00000b20| 48 f0 0e 14 41 40 da 0e | 2b da f1 0e 14 38 b0 05 |H...A@..|+....8..|
|00000b30| 21 0e 2a 26 07 2a 2e 09 | 87 22 20 5b 61 72 67 73 |!.*&.*..|." [args|
|00000b40| 20 75 72 6c 20 75 72 6c | 2d 67 65 6e 65 72 69 63 | url url|-generic|
|00000b50| 2d 70 61 72 73 65 2d 75 | 72 6c 20 68 72 65 66 20 |-parse-u|rl href |
|00000b60| 33 20 75 72 6c 2d 63 75 | 72 72 65 6e 74 2d 73 65 |3 url-cu|rrent-se|
|00000b70| 72 76 65 72 20 73 65 72 | 76 65 72 20 34 20 37 20 |rver ser|ver 4 7 |
|00000b80| 61 73 73 6f 63 20 30 20 | 75 72 6c 2d 64 65 66 61 |assoc 0 |url-defa|
|00000b90| 75 6c 74 2d 70 6f 72 74 | 73 20 22 38 30 22 20 70 |ult-port|s "80" p|
|00000ba0| 6f 72 74 20 35 20 70 61 | 74 68 20 6e 69 6c 20 75 |ort 5 pa|th nil u|
|00000bb0| 73 65 72 20 70 61 73 73 | 20 62 79 73 65 72 76 20 |ser pass| byserv |
|00000bc0| 72 65 74 76 61 6c 20 64 | 61 74 61 20 72 65 61 6c |retval d|ata real|
|00000bd0| 6d 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 |m string|-match "|
|00000be0| 2f 24 22 20 75 72 6c 2d | 62 61 73 65 70 61 74 68 |/$" url-|basepath|
|00000bf0| 20 22 3a 22 20 75 72 6c | 2d 64 69 67 65 73 74 2d | ":" url|-digest-|
|00000c00| 61 75 74 68 2d 73 74 6f | 72 61 67 65 20 70 72 6f |auth-sto|rage pro|
|00000c10| 6d 70 74 20 72 65 61 64 | 2d 73 74 72 69 6e 67 20 |mpt read|-string |
|00000c20| 22 55 73 65 72 6e 61 6d | 65 3a 20 22 20 75 73 65 |"Usernam|e: " use|
|00000c30| 72 2d 72 65 61 6c 2d 6c | 6f 67 69 6e 2d 6e 61 6d |r-real-l|ogin-nam|
|00000c40| 65 20 75 72 6c 2d 70 61 | 73 73 77 64 2d 65 6e 74 |e url-pa|sswd-ent|
|00000c50| 72 79 2d 66 75 6e 63 20 | 22 50 61 73 73 77 6f 72 |ry-func |"Passwor|
|00000c60| 64 3a 20 22 20 75 72 6c | 2d 64 69 67 65 73 74 2d |d: " url|-digest-|
|00000c70| 61 75 74 68 2d 63 72 65 | 61 74 65 2d 6b 65 79 20 |auth-cre|ate-key |
|00000c80| 75 72 6c 2d 72 65 71 75 | 65 73 74 2d 6d 65 74 68 |url-requ|est-meth|
|00000c90| 6f 64 20 22 47 45 54 22 | 20 22 2f 22 20 6f 76 65 |od "GET"| "/" ove|
|00000ca0| 72 77 72 69 74 65 20 22 | 6e 6f 6e 63 65 22 20 22 |rwrite "|nonce" "|
|00000cb0| 6e 6f 6e 65 67 69 76 65 | 6e 22 20 22 6f 70 61 71 |nonegive|n" "opaq|
|00000cc0| 75 65 22 20 6f 70 61 71 | 75 65 20 6e 6f 6e 63 65 |ue" opaq|ue nonce|
|00000cd0| 20 66 6f 72 6d 61 74 20 | 22 44 69 67 65 73 74 20 | format |"Digest |
|00000ce0| 75 73 65 72 6e 61 6d 65 | 3d 5c 22 25 73 5c 22 2c |username|=\"%s\",|
|00000cf0| 20 72 65 61 6c 6d 3d 5c | 22 25 73 5c 22 2c 22 20 | realm=\|"%s\"," |
|00000d00| 22 6e 6f 6e 63 65 3d 5c | 22 25 73 5c 22 2c 20 75 |"nonce=\|"%s\", u|
|00000d10| 72 69 3d 5c 22 25 73 5c | 22 2c 22 20 22 72 65 73 |ri=\"%s\|"," "res|
|00000d20| 70 6f 6e 73 65 3d 5c 22 | 25 73 5c 22 2c 20 6f 70 |ponse=\"|%s\", op|
|00000d30| 61 71 75 65 3d 5c 22 25 | 73 5c 22 22 20 6d 64 35 |aque=\"%|s\"" md5|
|00000d40| 20 32 5d 20 31 34 20 22 | 5c 0a 47 65 74 20 74 68 | 2] 14 "|\.Get th|
|00000d50| 65 20 75 73 65 72 6e 61 | 6d 65 2f 70 61 73 73 77 |e userna|me/passw|
|00000d60| 6f 72 64 20 66 6f 72 20 | 74 68 65 20 73 70 65 63 |ord for |the spec|
|00000d70| 69 66 69 65 64 20 55 52 | 4c 2e 0a 49 66 20 6f 70 |ified UR|L..If op|
|00000d80| 74 69 6f 6e 61 6c 20 61 | 72 67 75 6d 65 6e 74 20 |tional a|rgument |
|00000d90| 50 52 4f 4d 50 54 20 69 | 73 20 6e 6f 6e 2d 6e 69 |PROMPT i|s non-ni|
|00000da0| 6c 2c 20 61 73 6b 20 66 | 6f 72 20 74 68 65 20 75 |l, ask f|or the u|
|00000db0| 73 65 72 6e 61 6d 65 2f | 70 61 73 73 77 6f 72 64 |sername/|password|
|00000dc0| 0a 74 6f 20 75 73 65 20 | 66 6f 72 20 74 68 65 20 |.to use |for the |
|00000dd0| 75 72 6c 20 61 6e 64 20 | 69 74 73 20 64 65 73 63 |url and |its desc|
|00000de0| 65 6e 64 61 6e 74 73 2e | 20 20 49 66 20 6f 70 74 |endants.| If opt|
|00000df0| 69 6f 6e 61 6c 20 74 68 | 69 72 64 20 61 72 67 75 |ional th|ird argu|
|00000e00| 6d 65 6e 74 0a 4f 56 45 | 52 57 52 49 54 45 20 69 |ment.OVE|RWRITE i|
|00000e10| 73 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 6f 76 65 72 77 |s non-ni|l, overw|
|00000e20| 72 69 74 65 20 74 68 65 | 20 6f 6c 64 20 75 73 65 |rite the| old use|
|00000e30| 72 6e 61 6d 65 2f 70 61 | 73 73 77 6f 72 64 20 70 |rname/pa|ssword p|
|00000e40| 61 69 72 20 69 66 20 69 | 74 0a 69 73 20 66 6f 75 |air if i|t.is fou|
|00000e50| 6e 64 20 69 6e 20 74 68 | 65 20 61 73 73 6f 63 20 |nd in th|e assoc |
|00000e60| 6c 69 73 74 2e 20 20 49 | 66 20 52 45 41 4c 4d 20 |list. I|f REALM |
|00000e70| 69 73 20 73 70 65 63 69 | 66 69 65 64 2c 20 75 73 |is speci|fied, us|
|00000e80| 65 20 74 68 61 74 20 61 | 73 20 74 68 65 20 72 65 |e that a|s the re|
|00000e90| 61 6c 6d 0a 69 6e 73 74 | 65 61 64 20 6f 66 20 68 |alm.inst|ead of h|
|00000ea0| 6f 73 74 6e 61 6d 65 3a | 70 6f 72 74 6e 75 6d 2e |ostname:|portnum.|
|00000eb0| 22 5d 29 0a 28 64 65 66 | 76 61 72 20 75 72 6c 2d |"]).(def|var url-|
|00000ec0| 72 65 67 69 73 74 65 72 | 65 64 2d 61 75 74 68 2d |register|ed-auth-|
|00000ed0| 73 63 68 65 6d 65 73 20 | 6e 69 6c 20 22 5c 0a 41 |schemes |nil "\.A|
|00000ee0| 20 6c 69 73 74 20 6f 66 | 20 74 68 65 20 72 65 67 | list of| the reg|
|00000ef0| 69 73 74 65 72 65 64 20 | 61 75 74 68 6f 72 69 7a |istered |authoriz|
|00000f00| 61 74 69 6f 6e 20 73 63 | 68 65 6d 65 73 20 61 6e |ation sc|hemes an|
|00000f10| 64 20 76 61 72 69 6f 75 | 73 20 61 6e 64 20 73 75 |d variou|s and su|
|00000f20| 6e 64 72 79 0a 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ndry.inf|ormation|
|00000f30| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00000f40| 20 74 68 65 6d 2e 22 29 | 0a 28 66 73 65 74 20 27 | them.")|.(fset '|
|00000f50| 75 72 6c 2d 67 65 74 2d | 61 75 74 68 65 6e 74 69 |url-get-|authenti|
|00000f60| 63 61 74 69 6f 6e 20 23 | 5b 28 75 72 6c 20 72 65 |cation #|[(url re|
|00000f70| 61 6c 6d 20 74 79 70 65 | 20 70 72 6f 6d 70 74 20 |alm type| prompt |
|00000f80| 26 6f 70 74 69 6f 6e 61 | 6c 20 61 72 67 73 29 20 |&optiona|l args) |
|00000f90| 22 08 ac 86 c1 c2 0b 5c | 22 a3 10 0c 3b ab 84 c5 |"......\|"...;...|
|00000fa0| 0c 21 14 0e 06 ab 86 0e | 06 c7 3d ab 8b c8 c9 ca |.!......|..=.....|
|00000fb0| 0e 0b 5c 22 cc 5c 22 a2 | a3 87 0e 06 39 ab 86 cd |..\".\".|....9...|
|00000fc0| 0e 06 21 16 06 c1 0e 06 | 97 0e 0b 5c 22 a3 a2 89 |..!.....|...\"...|
|00000fd0| 1e 0e ad 99 cf 0e 0e 21 | ad 93 0e 0e 0c 0e 10 89 |.......!|........|
|00000fe0| ad 88 0e 0e 0c d1 89 08 | 0b 25 08 0b 25 29 87 22 |........|.%..%)."|
|00000ff0| 20 5b 72 65 61 6c 6d 20 | 61 73 73 6f 63 20 22 72 | [realm |assoc "r|
|00001000| 65 61 6c 6d 22 20 61 72 | 67 73 20 75 72 6c 20 75 |ealm" ar|gs url u|
|00001010| 72 6c 2d 67 65 6e 65 72 | 69 63 2d 70 61 72 73 65 |rl-gener|ic-parse|
|00001020| 2d 75 72 6c 20 74 79 70 | 65 20 61 6e 79 20 73 6f |-url typ|e any so|
|00001030| 72 74 20 6d 61 70 63 61 | 72 20 23 5b 28 73 63 68 |rt mapca|r #[(sch|
|00001040| 65 6d 65 29 20 22 c0 09 | 41 40 21 ab 8d 09 41 41 |eme) "..|A@!...AA|
|00001050| 09 41 40 5c 6e c3 89 0c | 24 42 87 c5 c3 42 87 22 |.A@\n...|$B...B."|
|00001060| 20 5b 66 62 6f 75 6e 64 | 70 20 73 63 68 65 6d 65 | [fbound|p scheme|
|00001070| 20 75 72 6c 20 6e 69 6c | 20 72 65 61 6c 6d 20 30 | url nil| realm 0|
|00001080| 5d 20 36 5d 20 75 72 6c | 2d 72 65 67 69 73 74 65 |] 6] url|-registe|
|00001090| 72 65 64 2d 61 75 74 68 | 2d 73 63 68 65 6d 65 73 |red-auth|-schemes|
|000010a0| 20 23 5b 28 78 20 79 29 | 20 22 08 41 ac 82 c1 87 | #[(x y)| ".A....|
|000010b0| 08 41 ab 86 5c 6e 41 ac | 82 c3 87 08 41 ab 8a 5c |.A..\nA.|....A..\|
|000010c0| 6e 41 ab 86 08 40 5c 6e | 40 59 87 c1 87 22 20 5b |nA...@\n|@Y..." [|
|000010d0| 78 20 6e 69 6c 20 79 20 | 74 5d 20 32 5d 20 73 79 |x nil y |t] 2] sy|
|000010e0| 6d 62 6f 6c 2d 6e 61 6d | 65 20 73 63 68 65 6d 65 |mbol-nam|e scheme|
|000010f0| 20 66 62 6f 75 6e 64 70 | 20 70 72 6f 6d 70 74 20 | fboundp| prompt |
|00001100| 6e 69 6c 5d 20 31 30 20 | 22 5c 0a 52 65 74 75 72 |nil] 10 |"\.Retur|
|00001110| 6e 20 61 6e 20 61 75 74 | 68 6f 72 69 7a 61 74 69 |n an aut|horizati|
|00001120| 6f 6e 20 73 74 72 69 6e | 67 20 73 75 69 74 61 62 |on strin|g suitab|
|00001130| 6c 65 20 66 6f 72 20 75 | 73 65 20 69 6e 20 74 68 |le for u|se in th|
|00001140| 65 20 57 57 57 2d 41 75 | 74 68 65 6e 74 69 63 61 |e WWW-Au|thentica|
|00001150| 74 65 0a 68 65 61 64 65 | 72 20 69 6e 20 61 6e 20 |te.heade|r in an |
|00001160| 48 54 54 50 2f 31 2e 30 | 20 72 65 71 75 65 73 74 |HTTP/1.0| request|
|00001170| 2e 0a 0a 55 52 4c 20 20 | 20 20 69 73 20 74 68 65 |...URL | is the|
|00001180| 20 75 72 6c 20 79 6f 75 | 20 61 72 65 20 72 65 71 | url you| are req|
|00001190| 75 65 73 74 69 6e 67 20 | 61 75 74 68 6f 72 69 7a |uesting |authoriz|
|000011a0| 61 74 69 6f 6e 20 74 6f | 2e 20 20 54 68 69 73 20 |ation to|. This |
|000011b0| 63 61 6e 20 62 65 20 65 | 69 74 68 65 72 20 61 0a |can be e|ither a.|
|000011c0| 20 20 20 20 20 20 20 73 | 74 72 69 6e 67 20 72 65 | s|tring re|
|000011d0| 70 72 65 73 65 6e 74 69 | 6e 67 20 74 68 65 20 55 |presenti|ng the U|
|000011e0| 52 4c 2c 20 6f 72 20 74 | 68 65 20 70 61 72 73 65 |RL, or t|he parse|
|000011f0| 64 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |d repres|entation|
|00001200| 20 72 65 74 75 72 6e 65 | 64 20 62 79 0a 20 20 20 | returne|d by. |
|00001210| 20 20 20 20 60 75 72 6c | 2d 67 65 6e 65 72 69 63 | `url|-generic|
|00001220| 2d 70 61 72 73 65 2d 75 | 72 6c 27 0a 52 45 41 4c |-parse-u|rl'.REAL|
|00001230| 4d 20 20 69 73 20 74 68 | 65 20 72 65 61 6c 6d 20 |M is th|e realm |
|00001240| 61 74 20 61 20 73 70 65 | 63 69 66 69 63 20 73 69 |at a spe|cific si|
|00001250| 74 65 20 77 65 20 61 72 | 65 20 6c 6f 6f 6b 69 6e |te we ar|e lookin|
|00001260| 67 20 66 6f 72 2e 20 20 | 54 68 69 73 20 73 68 6f |g for. |This sho|
|00001270| 75 6c 64 20 62 65 20 61 | 0a 20 20 20 20 20 20 20 |uld be a|. |
|00001280| 73 74 72 69 6e 67 20 73 | 70 65 63 69 66 79 69 6e |string s|pecifyin|
|00001290| 67 20 74 68 65 20 65 78 | 61 63 74 20 72 65 61 6c |g the ex|act real|
|000012a0| 6d 2c 20 6f 72 20 6e 69 | 6c 20 6f 72 20 74 68 65 |m, or ni|l or the|
|000012b0| 20 73 79 6d 62 6f 6c 20 | 27 61 6e 79 27 20 74 6f | symbol |'any' to|
|000012c0| 0a 20 20 20 20 20 20 20 | 73 70 65 63 69 66 79 20 |. |specify |
|000012d0| 74 68 61 74 20 74 68 65 | 20 66 69 6c 65 6e 61 6d |that the| filenam|
|000012e0| 65 20 70 6f 72 74 69 6f | 6e 20 6f 66 20 74 68 65 |e portio|n of the|
|000012f0| 20 55 52 4c 20 73 68 6f | 75 6c 64 20 62 65 20 75 | URL sho|uld be u|
|00001300| 73 65 64 20 61 73 20 74 | 68 65 0a 20 20 20 20 20 |sed as t|he. |
|00001310| 20 20 72 65 61 6c 6d 0a | 54 59 50 45 20 20 20 69 | realm.|TYPE i|
|00001320| 73 20 74 68 65 20 74 79 | 70 65 20 6f 66 20 61 75 |s the ty|pe of au|
|00001330| 74 68 65 6e 74 69 63 61 | 74 69 6f 6e 20 74 6f 20 |thentica|tion to |
|00001340| 62 65 20 72 65 74 75 72 | 6e 65 64 2e 20 20 54 68 |be retur|ned. Th|
|00001350| 69 73 20 69 73 20 65 69 | 74 68 65 72 20 61 20 73 |is is ei|ther a s|
|00001360| 74 72 69 6e 67 0a 20 20 | 20 20 20 20 20 72 65 70 |tring. | rep|
|00001370| 72 65 73 65 6e 74 69 6e | 67 20 74 68 65 20 74 79 |resentin|g the ty|
|00001380| 70 65 20 28 62 61 73 69 | 63 2c 20 64 69 67 65 73 |pe (basi|c, diges|
|00001390| 74 2c 20 65 74 63 29 2c | 20 6f 72 20 6e 69 6c 20 |t, etc),| or nil |
|000013a0| 6f 72 20 74 68 65 20 73 | 79 6d 62 6f 6c 20 27 61 |or the s|ymbol 'a|
|000013b0| 6e 79 27 0a 20 20 20 20 | 20 20 20 74 6f 20 73 70 |ny'. | to sp|
|000013c0| 65 63 69 66 79 20 74 68 | 61 74 20 61 6e 79 20 61 |ecify th|at any a|
|000013d0| 75 74 68 65 6e 74 69 63 | 61 74 69 6f 6e 20 69 73 |uthentic|ation is|
|000013e0| 20 61 63 63 65 70 74 61 | 62 6c 65 2e 20 20 49 66 | accepta|ble. If|
|000013f0| 20 72 65 71 75 65 73 74 | 69 6e 67 20 27 61 6e 79 | request|ing 'any|
|00001400| 27 0a 20 20 20 20 20 20 | 20 74 68 65 20 73 74 72 |'. | the str|
|00001410| 6f 6e 67 65 73 74 20 6d | 61 74 63 68 69 6e 67 20 |ongest m|atching |
|00001420| 61 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 20 77 |authenti|cation w|
|00001430| 69 6c 6c 20 62 65 20 72 | 65 74 75 72 6e 65 64 2e |ill be r|eturned.|
|00001440| 20 20 49 66 20 74 68 69 | 73 20 69 73 0a 20 20 20 | If thi|s is. |
|00001450| 20 20 20 20 77 72 6f 6e | 67 2c 20 69 74 73 20 6e | wron|g, its n|
|00001460| 6f 20 62 69 67 20 64 65 | 61 6c 2c 20 74 68 65 20 |o big de|al, the |
|00001470| 65 72 72 6f 72 20 66 72 | 6f 6d 20 74 68 65 20 73 |error fr|om the s|
|00001480| 65 72 76 65 72 20 77 69 | 6c 6c 20 73 70 65 63 69 |erver wi|ll speci|
|00001490| 66 79 20 65 78 61 63 74 | 6c 79 0a 20 20 20 20 20 |fy exact|ly. |
|000014a0| 20 20 77 68 61 74 20 74 | 79 70 65 20 6f 66 20 61 | what t|ype of a|
|000014b0| 75 74 68 20 74 6f 20 75 | 73 65 0a 50 52 4f 4d 50 |uth to u|se.PROMP|
|000014c0| 54 20 69 73 20 62 6f 6f | 6c 65 61 6e 20 2d 20 73 |T is boo|lean - s|
|000014d0| 70 65 63 69 66 69 65 73 | 20 77 68 65 74 68 65 72 |pecifies| whether|
|000014e0| 20 74 6f 20 61 73 6b 20 | 74 68 65 20 75 73 65 72 | to ask |the user|
|000014f0| 20 66 6f 72 20 61 20 75 | 73 65 72 6e 61 6d 65 2f | for a u|sername/|
|00001500| 70 61 73 73 77 6f 72 64 | 0a 20 20 20 20 20 20 20 |password|. |
|00001510| 69 66 20 6f 6e 65 20 63 | 61 6e 6e 6f 74 20 62 65 |if one c|annot be|
|00001520| 20 66 6f 75 6e 64 20 69 | 6e 20 74 68 65 20 63 61 | found i|n the ca|
|00001530| 63 68 65 22 5d 29 0a 28 | 62 79 74 65 2d 63 6f 64 |che"]).(|byte-cod|
|00001540| 65 20 22 c0 c1 21 ac 84 | c1 c2 4d 88 c0 87 22 20 |e "..!..|..M..." |
|00001550| 5b 66 62 6f 75 6e 64 70 | 20 77 61 72 6e 20 23 5b |[fboundp| warn #[|
|00001560| 28 26 72 65 73 74 20 61 | 72 67 73 29 20 22 c0 c1 |(&rest a|rgs) "..|
|00001570| 5c 6e 5c 22 87 22 20 5b | 61 70 70 6c 79 20 6d 65 |\n\"." [|apply me|
|00001580| 73 73 61 67 65 20 61 72 | 67 73 5d 20 33 5d 5d 20 |ssage ar|gs] 3]] |
|00001590| 32 29 0a 28 66 73 65 74 | 20 27 75 72 6c 2d 72 65 |2).(fset| 'url-re|
|000015a0| 67 69 73 74 65 72 2d 61 | 75 74 68 2d 73 63 68 65 |gister-a|uth-sche|
|000015b0| 6d 65 20 23 5b 28 74 79 | 70 65 20 26 6f 70 74 69 |me #[(ty|pe &opti|
|000015c0| 6f 6e 61 6c 20 66 75 6e | 63 74 69 6f 6e 20 72 61 |onal fun|ction ra|
|000015d0| 74 69 6e 67 29 20 22 08 | 3b ab 84 08 97 aa 8d 08 |ting) ".|;.......|
|000015e0| 39 ab 86 c1 08 21 97 aa | 83 c2 c3 21 18 0c ae 86 |9....!..|...!....|
|000015f0| c5 c6 08 c7 51 21 1c 0e | 08 ac 83 c9 aa 8d 0e 08 |....Q!..|........|
|00001600| 3b ab 86 ca 0e 08 21 aa | 82 0e 08 1e 08 cb 08 0e |;.....!.|........|
|00001610| 0c 5c 22 1e 0d ce 0c 21 | ac 87 cf d0 d1 50 0c 5c |.\"....!|.....P.\|
|00001620| 22 88 0e 0d ab 91 0e 0d | 0c 0e 08 42 a1 88 d2 d3 |".......|...B....|
|00001630| d4 d5 08 5c 22 5c 22 aa | 8c 08 0c 0e 08 42 42 0e |...\"\".|.....BB.|
|00001640| 0c 42 89 16 0c 2c 87 22 | 20 5b 74 79 70 65 20 73 |.B...,."| [type s|
|00001650| 79 6d 62 6f 6c 2d 6e 61 | 6d 65 20 65 72 72 6f 72 |ymbol-na|me error|
|00001660| 20 22 42 61 64 20 63 61 | 6c 6c 20 74 6f 20 60 75 | "Bad ca|ll to `u|
|00001670| 72 6c 2d 72 65 67 69 73 | 74 65 72 2d 61 75 74 68 |rl-regis|ter-auth|
|00001680| 2d 73 63 68 65 6d 65 27 | 22 20 66 75 6e 63 74 69 |-scheme'|" functi|
|00001690| 6f 6e 20 69 6e 74 65 72 | 6e 20 22 75 72 6c 2d 22 |on inter|n "url-"|
|000016a0| 20 22 2d 61 75 74 68 22 | 20 72 61 74 69 6e 67 20 | "-auth"| rating |
|000016b0| 32 20 73 74 72 69 6e 67 | 2d 74 6f 2d 69 6e 74 20 |2 string|-to-int |
|000016c0| 61 73 73 6f 63 20 75 72 | 6c 2d 72 65 67 69 73 74 |assoc ur|l-regist|
|000016d0| 65 72 65 64 2d 61 75 74 | 68 2d 73 63 68 65 6d 65 |ered-aut|h-scheme|
|000016e0| 73 20 6e 6f 64 65 20 66 | 62 6f 75 6e 64 70 20 77 |s node f|boundp w|
|000016f0| 61 72 6e 20 22 54 72 69 | 65 64 20 74 6f 20 72 65 |arn "Tri|ed to re|
|00001700| 67 69 73 74 65 72 20 60 | 25 73 27 20 61 73 20 61 |gister `|%s' as a|
|00001710| 6e 20 61 75 74 68 20 73 | 63 68 65 6d 65 22 20 22 |n auth s|cheme" "|
|00001720| 2c 20 62 75 74 20 69 74 | 20 69 73 20 6e 6f 74 20 |, but it| is not |
|00001730| 61 20 66 75 6e 63 74 69 | 6f 6e 21 22 20 75 72 6c |a functi|on!" url|
|00001740| 2d 77 61 72 6e 20 73 65 | 63 75 72 69 74 79 20 66 |-warn se|curity f|
|00001750| 6f 72 6d 61 74 20 22 52 | 65 70 6c 61 63 69 6e 67 |ormat "R|eplacing|
|00001760| 20 61 75 74 68 6f 72 69 | 7a 61 74 69 6f 6e 20 6d | authori|zation m|
|00001770| 65 74 68 6f 64 20 60 25 | 73 27 20 2d 20 74 68 69 |ethod `%|s' - thi|
|00001780| 73 20 63 6f 75 6c 64 20 | 62 65 20 62 61 64 2e 22 |s could |be bad."|
|00001790| 5d 20 35 20 22 5c 0a 52 | 65 67 69 73 74 65 72 20 |] 5 "\.R|egister |
|000017a0| 61 6e 20 48 54 54 50 20 | 61 75 74 68 65 6e 74 69 |an HTTP |authenti|
|000017b0| 63 61 74 69 6f 6e 20 6d | 65 74 68 6f 64 2e 0a 0a |cation m|ethod...|
|000017c0| 54 59 50 45 20 20 20 20 | 20 69 73 20 61 20 73 74 |TYPE | is a st|
|000017d0| 72 69 6e 67 20 6f 72 20 | 73 79 6d 62 6f 6c 20 73 |ring or |symbol s|
|000017e0| 70 65 63 69 66 79 69 6e | 67 20 74 68 65 20 6e 61 |pecifyin|g the na|
|000017f0| 6d 65 20 6f 66 20 74 68 | 65 20 6d 65 74 68 6f 64 |me of th|e method|
|00001800| 2e 20 20 20 54 68 69 73 | 0a 20 20 20 20 20 20 20 |. This|. |
|00001810| 20 20 73 68 6f 75 6c 64 | 20 62 65 20 74 68 65 20 | should| be the |
|00001820| 73 61 6d 65 20 74 68 69 | 6e 67 20 79 6f 75 20 65 |same thi|ng you e|
|00001830| 78 70 65 63 74 20 74 6f | 20 67 65 74 20 72 65 74 |xpect to| get ret|
|00001840| 75 72 6e 65 64 20 69 6e | 20 61 6e 20 41 75 74 68 |urned in| an Auth|
|00001850| 65 6e 74 69 63 61 74 65 | 0a 20 20 20 20 20 20 20 |enticate|. |
|00001860| 20 20 68 65 61 64 65 72 | 20 69 6e 20 48 54 54 50 | header| in HTTP|
|00001870| 2f 31 2e 30 20 2d 20 69 | 74 20 77 69 6c 6c 20 62 |/1.0 - i|t will b|
|00001880| 65 20 64 6f 77 6e 63 61 | 73 65 64 2e 0a 46 55 4e |e downca|sed..FUN|
|00001890| 43 54 49 4f 4e 20 69 73 | 20 74 68 65 20 66 75 6e |CTION is| the fun|
|000018a0| 63 74 69 6f 6e 20 74 6f | 20 63 61 6c 6c 20 74 6f |ction to| call to|
|000018b0| 20 67 65 74 20 74 68 65 | 20 61 75 74 68 6f 72 69 | get the| authori|
|000018c0| 7a 61 74 69 6f 6e 20 69 | 6e 66 6f 72 6d 61 74 69 |zation i|nformati|
|000018d0| 6f 6e 2e 20 20 54 68 69 | 73 0a 20 20 20 20 20 20 |on. Thi|s. |
|000018e0| 20 20 20 64 65 66 61 75 | 6c 74 73 20 74 6f 20 60 | defau|lts to `|
|000018f0| 75 72 6c 2d 3f 2d 61 75 | 74 68 27 2c 20 77 68 65 |url-?-au|th', whe|
|00001900| 72 65 20 3f 20 69 73 20 | 54 59 50 45 0a 52 41 54 |re ? is |TYPE.RAT|
|00001910| 49 4e 47 20 20 20 61 20 | 72 61 74 69 6e 67 20 62 |ING a |rating b|
|00001920| 65 74 77 65 65 6e 20 31 | 20 61 6e 64 20 31 30 20 |etween 1| and 10 |
|00001930| 6f 66 20 74 68 65 20 73 | 74 72 65 6e 67 74 68 20 |of the s|trength |
|00001940| 6f 66 20 74 68 65 20 61 | 75 74 68 65 6e 74 69 63 |of the a|uthentic|
|00001950| 61 74 69 6f 6e 2e 0a 20 | 20 20 20 20 20 20 20 20 |ation.. | |
|00001960| 54 68 69 73 20 69 73 20 | 75 73 65 64 20 77 68 65 |This is |used whe|
|00001970| 6e 20 61 73 6b 69 6e 67 | 20 66 6f 72 20 74 68 65 |n asking| for the|
|00001980| 20 62 65 73 74 20 61 75 | 74 68 65 6e 74 69 63 61 | best au|thentica|
|00001990| 74 69 6f 6e 20 66 6f 72 | 20 61 20 73 70 65 63 69 |tion for| a speci|
|000019a0| 66 69 63 0a 20 20 20 20 | 20 20 20 20 20 55 52 4c |fic. | URL|
|000019b0| 2e 20 20 54 68 65 20 69 | 74 65 6d 20 77 69 74 68 |. The i|tem with|
|000019c0| 20 74 68 65 20 68 69 67 | 68 65 73 74 20 72 61 74 | the hig|hest rat|
|000019d0| 69 6e 67 20 69 73 20 72 | 65 74 75 72 6e 65 64 2e |ing is r|eturned.|
|000019e0| 22 5d 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |"]).(byt|e-code "|
|000019f0| c0 c1 4d 88 c2 c3 21 87 | 22 20 5b 75 72 6c 2d 61 |..M...!.|" [url-a|
|00001a00| 75 74 68 2d 72 65 67 69 | 73 74 65 72 65 64 20 23 |uth-regi|stered #|
|00001a10| 5b 28 73 63 68 65 6d 65 | 29 20 22 c0 09 5c 6e 5c |[(scheme|) "..\n\|
|00001a20| 22 87 22 20 5b 61 73 73 | 6f 63 20 73 63 68 65 6d |"." [ass|oc schem|
|00001a30| 65 20 75 72 6c 2d 72 65 | 67 69 73 74 65 72 65 64 |e url-re|gistered|
|00001a40| 2d 61 75 74 68 2d 73 63 | 68 65 6d 65 73 5d 20 33 |-auth-sc|hemes] 3|
|00001a50| 5d 20 70 72 6f 76 69 64 | 65 20 75 72 6c 61 75 74 |] provid|e urlaut|
|00001a60| 68 5d 20 32 29 0a | |h] 2). | |
+--------+-------------------------+-------------------------+--------+--------+