[ 
https://issues.apache.org/jira/browse/VFS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622497#comment-12622497
 ] 

Sebb edited comment on VFS-178 at 12/8/11 9:25 AM:
---------------------------------------------------

According to RFC1738, "?" 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?


                
      was (Author: [email protected]):
    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:mypassword@somehost/pub/downloads/somefile.tgz?option=value 
> ---------------- Referece thread ----------------------------
> http://mail-archives.apache.org/mod_mbox/commons-dev/200709.mbox/%[email protected]%3e
> > 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to