From: Ivan Shmakov <ivan@siamics.net>
To: 17959@debbugs.gnu.org
Subject: bug#17959: support accessing FTP services via HTTP proxies
Date: Tue, 16 Dec 2014 20:09:24 +0000 [thread overview]
Message-ID: <877fxricgb.fsf_-_@violet.siamics.net> (raw)
In-Reply-To: <87r3wz7h0e.fsf@violet.siamics.net> (Ivan Shmakov's message of "Wed, 19 Nov 2014 08:04:49 +0000")
[-- Attachment #1: Type: text/plain, Size: 794 bytes --]
>>>>> Ivan Shmakov <ivan@siamics.net> writes:
[…]
> Given that the only thing that EWW has to do to support ftp_proxy is
> to ensure the user configuration specifies an HTTP proxy to use for
> the target ftp: URI, it just seems like to simple a feature to omit
> it.
The patch MIMEd seems to resolve the issue.
> When no HTTP proxy is specified for the URI, EWW should indeed
> somehow invoke the Emacs native FTP client instead.
> I guess the same approach may be applied to the other URI schemes
> just as well (gopher:, perhaps?)
FTR, – I’ve tried to access [1] via Squid, and it just worked.
[1] gopher://gopher.docfile.org/1/world/monitoring/uptime
[…]
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/diff, Size: 817 bytes --]
--- a/lisp/net/eww.el 2014-12-09 03:21:57 +0000
+++ b/lisp/net/eww.el 2014-12-16 19:59:32 +0000
@@ -252,8 +238,15 @@
(setq url (string-trim url))
(cond ((string-match-p "\\`file:/" url))
;; Don't mangle file: URLs at all.
- ((string-match-p "\\`ftp://" url)
- (user-error "FTP is not supported."))
+ ((let* ((parsed (url-generic-parse-url url))
+ (loader (url-scheme-get-property (url-type parsed) 'loader))
+ (proxy (and (url-host parsed)
+ (url-find-proxy-for-url
+ parsed (url-host parsed)))))
+ (and (eq 'url-ftp loader)
+ (or (not proxy)
+ (not (string-match-p "^https?://" proxy)))))
+ (user-error "Direct FTP is not supported."))
(t
(if (and (= (length (split-string url)) 1)
(or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url))
next prev parent reply other threads:[~2014-12-16 20:09 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-06 19:15 bug#17959: eww: FTP is not supported; but with ftp_proxy, it is Ivan Shmakov
2014-11-04 16:40 ` Ted Zlatanov
2014-11-10 21:20 ` Lars Magne Ingebrigtsen
2014-11-19 8:04 ` Ivan Shmakov
2014-11-19 17:24 ` Lars Magne Ingebrigtsen
2014-12-16 20:09 ` Ivan Shmakov [this message]
2015-01-12 21:40 ` bug#17959: support accessing FTP services via HTTP proxies Ivan Shmakov
2015-02-09 16:55 ` bug#19822: url-retrieve: allow to fail when no document is associated with the URI Ivan Shmakov
2015-12-25 19:00 ` Lars Ingebrigtsen
2015-12-28 22:07 ` Ted Zlatanov
[not found] ` <87fuym1b2r.fsf@lifelogs.com>
2015-12-28 22:30 ` Lars Ingebrigtsen
[not found] ` <87r3iawdyl.fsf@gnus.org>
2015-12-25 23:47 ` Drew Adams
2019-09-30 1:03 ` Stefan Kangas
2019-09-30 5:47 ` Lars Ingebrigtsen
2019-09-30 7:21 ` Eli Zaretskii
2019-09-30 7:30 ` Lars Ingebrigtsen
2019-09-30 8:22 ` Eli Zaretskii
2019-09-30 14:40 ` Lars Ingebrigtsen
2019-09-30 15:05 ` Eli Zaretskii
2019-10-01 13:19 ` Stefan Kangas
2019-10-01 13:37 ` Eli Zaretskii
2019-10-01 13:44 ` Stefan Kangas
2019-10-01 14:51 ` Eli Zaretskii
2019-10-01 15:13 ` Stefan Kangas
2019-10-01 15:24 ` Eli Zaretskii
2019-10-01 13:56 ` Lars Ingebrigtsen
2019-10-01 14:06 ` Stefan Kangas
2019-10-01 14:24 ` Stefan Kangas
2019-10-01 15:13 ` Lars Ingebrigtsen
2019-10-01 16:07 ` Stefan Kangas
2015-02-09 17:04 ` bug#17959: support accessing FTP services via HTTP proxies Ivan Shmakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fxricgb.fsf_-_@violet.siamics.net \
--to=ivan@siamics.net \
--cc=17959@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).