Mercurial > emacs
comparison lisp/url/url-http.el @ 64331:bb65f8cf3863
(url-http-parse-headers): Add :redirect arg-pair
when calling url-retrieve, to indicate a redirect.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 15 Jul 2005 05:12:09 +0000 |
parents | a8fa7c632ee4 |
children | 875dcc490074 |
comparison
equal
deleted
inserted
replaced
64330:ba29905c8f52 | 64331:bb65f8cf3863 |
---|---|
499 (setq redirect-uri (url-expand-file-name redirect-uri))) | 499 (setq redirect-uri (url-expand-file-name redirect-uri))) |
500 (let ((url-request-method url-http-method) | 500 (let ((url-request-method url-http-method) |
501 (url-request-data url-http-data) | 501 (url-request-data url-http-data) |
502 (url-request-extra-headers url-http-extra-headers)) | 502 (url-request-extra-headers url-http-extra-headers)) |
503 (url-retrieve redirect-uri url-callback-function | 503 (url-retrieve redirect-uri url-callback-function |
504 (cons redirect-uri | 504 (cons :redirect |
505 (cdr url-callback-arguments))) | 505 (cons redirect-uri |
506 url-callback-arguments))) | |
506 (url-mark-buffer-as-dead (current-buffer)))))) | 507 (url-mark-buffer-as-dead (current-buffer)))))) |
507 (4 ; Client error | 508 (4 ; Client error |
508 ;; 400 Bad Request | 509 ;; 400 Bad Request |
509 ;; 401 Unauthorized | 510 ;; 401 Unauthorized |
510 ;; 402 Payment required | 511 ;; 402 Payment required |