[ 
https://issues.apache.org/jira/browse/CONFIGURATION-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489073
 ] 

Emmanuel Bourg commented on CONFIGURATION-249:
----------------------------------------------

I changed AbstractFileConfiguration.save(URL) to allow  non file URLs, could 
you give it a try Anselm ? It worked fine with a FTP server, I have still to 
build a test case demonstrating this. For HTTP URLs I had to force the PUT 
method since the POST method is used by default once setDoOutput(true) is 
called. I haven't tested with a http server allowing PUT requests yet.

> save to URLs with a protocol other than "file:"
> -----------------------------------------------
>
>                 Key: CONFIGURATION-249
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-249
>             Project: Commons Configuration
>          Issue Type: Improvement
>    Affects Versions: 1.4
>            Reporter: Anselm Kruis
>            Priority: Minor
>             Fix For: 1.5
>
>
> Currently, the save(URL) method from AbstractFileConfiguration only supports 
> "file:" URLs. 
> Why not support  writing to URLs too? It is as simple like this
>                               java.net.URLConnection connection = 
> url.openConnection();
>                               connection.setDoOutput(true);
>                               connection.setDoInput(false);
>                               save(connection.getOutputStream());
> I could prepare a patch.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to