[
https://issues.apache.org/jira/browse/VFS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622497#action_12622497
]
Sebb commented on VFS-178:
--------------------------
According to RFX1738, "?" is allowed to be used unencoded as part of the ftp
path, so using it for defining parameters seems a bit risky.
Perhaps it would be better to choose a different introducer, for example ";" -
the FTP scheme already has ";type=" as an optional qualifier.
Maybe it would be safer to use ";vfs.mode=" for this specific case?
Or perhaps ";vfs.option=" for the general case?
> Indicate that passive FTP (and other options) should be used when writing to
> a FTP location
> -------------------------------------------------------------------------------------------
>
> Key: VFS-178
> URL: https://issues.apache.org/jira/browse/VFS-178
> Project: Commons VFS
> Issue Type: Improvement
> Affects Versions: Nightly Builds
> Reporter: Asankha C. Perera
> Attachments: vfs-ftp.patch
>
>
> I am trying to use VFS to connect to a FTP file, but the problem is that I
> cannot specify that PASSIVE mode should be used. I think we could use the
> format below to specify for example: ?passive=true etc.
> ftp://myusername:[EMAIL PROTECTED]/pub/downloads/somefile.tgz?option=value
> ---------------- Referece thread ----------------------------
> http://mail-archives.apache.org/mod_mbox/commons-dev/200709.mbox/[EMAIL
> PROTECTED]
> > I think the use of the ?? would not be a good URI scheme. However, maybe we
> > > could simply make the VFS parameters unique. For example add vfs. in front
> > > of them.
> > >
> > > For example,
> > > http://www/path/cgi-bin/send.pl?FILE=ABC&TYPE=PDF&vfs.proxyHost=proxy.host&vfs.proxyPort=8080
> > >
> Yes, for sure, this could make it too - I thought about it too. Even if
> I am still not that happy with this query-string parsing/repacking stuff
> I'd commit it if someone contributes a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.