+2006-12-26 OHASHI Akira <bg66@koka-in.org>
+
+ * mixi.el (mixi-url-retrieve): Simplify.
+
2006-12-25 OHASHI Akira <bg66@koka-in.org>
* mixi.el (mixi-diary-comment-list-regexp): Follow the change of mixi.
(defun mixi-url-retrieve (url &optional post-data)
"Retrieve the URL and return gotten strings."
- (if post-data
- (progn
- (setq url-request-method "POST")
- (setq url-request-data post-data))
- (setq url-request-method "GET")
- (setq url-request-data nil))
- (let* ((url (mixi-expand-url url))
+ (let* ((url-request-method (if post-data "POST" "GET"))
+ (url-request-data post-data)
+ (url (mixi-expand-url url))
(buffer (url-retrieve-synchronously url))
ret)
(unless (bufferp buffer)