[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: w3m-goto-url-new-session to handle POST data
- From: Vladimir Sedach <vas@xxxxxxxxxx>
- Date: Tue, 20 Jun 2017 18:51:42 -0700
- X-ml-name: emacs-w3m
- X-mail-count: 12704
Hello,
Attached is a patch to make w3m-goto-url-new-session handle POST data.
This is needed when starting a new session with a search query to a
search engine that expects POST data (DuckDuckGo is one such search
engine).
Thank you,
Vladimir
? w3m-goto-url-new-session-POST-data.diff
Index: ChangeLog
===================================================================
RCS file: /storage/cvsroot/emacs-w3m/ChangeLog,v
retrieving revision 1.3584
diff -u -p -u -r1.3584 ChangeLog
--- ChangeLog 15 Jun 2017 02:40:01 -0000 1.3584
+++ ChangeLog 21 Jun 2017 01:38:18 -0000
@@ -1,3 +1,7 @@
+2017-06-20 Vladimir Sedach <vas@xxxxxxxxxx>
+
+ * w3m.el (w3m-goto-url-new-session): Handle POST data.
+
2017-06-14 Boruch Baum <boruch_baum@xxxxxxx>
* w3m-cookie.el (w3m-cookie-url, w3m-cookie-domain, w3m-cookie-secure)
Index: w3m.el
===================================================================
RCS file: /storage/cvsroot/emacs-w3m/w3m.el,v
retrieving revision 1.1663
diff -u -p -u -r1.1663 w3m.el
--- w3m.el 13 Jun 2017 05:51:09 -0000 1.1663
+++ w3m.el 21 Jun 2017 01:38:20 -0000
@@ -9996,7 +9996,7 @@ session will start afresh."
charset post-data referer)
;; Delete useless newly created buffer if it is empty.
(w3m-delete-buffer-if-empty buffer))
- (w3m-goto-url url))))
+ (w3m-goto-url url nil charset post-data))))
(defun w3m-move-point-for-localcgi (url)
(when (and (w3m-url-local-p url)