|
Re: HTTP POST through a proxy [message #500357 is a reply to message #499753] |
Wed, 25 November 2009 18:18  |
Scott Lewis Messages: 1038 Registered: July 2009 |
Senior Member |
|
|
Hi Lance,
The newly refactored REST API does allow/use http post. See the test
code/docs on
http://wiki.eclipse.org/REST_abstraction_for_ECF
The current rest api implementation uses apache httpclient for http
communication...and doesn't yet have the support for proxying using the
Eclipse proxy API. (adding support for proxing is a very
straightforward thing of copying over the proxy code from the httpclient
impl of the filetransfer api...in
org.eclipse.ecf.provider.filetransfer.httpclient...but this has not been
done yet).
WRT URLConnection...no...we haven't been focusing on using URLConnection
for http-based communication, but rather httpclient (even though
URLConnection is already supported in the ECF filetransfer API for file
retrieval and browsing).
Supporting the ECF Rest API via URLConnection rather than httpclient
would be a nice thing to add, and would not be technically difficult,
but I don't currently have the resources to schedule immediate work on
it. Nonetheless, I would encourage you to bring it up as a possible
addition on the ecf mailing list (see below), and please open an
enhancement request via http://bugs.eclipse.org ...and even better...if
you are willing to contribute some to working on this enhancement that
would be great. We are most willing to work with contributors to make
desired additions as seemless as possible.
Thanks,
Scott
joining ECF mailing list: https://dev.eclipse.org/mailman/listinfo/ecf-dev
Lance Walton wrote:
> Hi all.
>
> Is there any simple, complete example of HTTP POSTing some stuff (let's
> say that I've got it in a String) to a server through a proxy, using
> URLConnection rather than HTTPClient? I can find lots of parts of it but
> not the whole thing.
>
> Regards,
>
> Lance
|
|
|
Re: HTTP POST through a proxy [message #624982 is a reply to message #499753] |
Wed, 25 November 2009 18:18  |
Scott Lewis Messages: 1038 Registered: July 2009 |
Senior Member |
|
|
Hi Lance,
The newly refactored REST API does allow/use http post. See the test
code/docs on
http://wiki.eclipse.org/REST_abstraction_for_ECF
The current rest api implementation uses apache httpclient for http
communication...and doesn't yet have the support for proxying using the
Eclipse proxy API. (adding support for proxing is a very
straightforward thing of copying over the proxy code from the httpclient
impl of the filetransfer api...in
org.eclipse.ecf.provider.filetransfer.httpclient...but this has not been
done yet).
WRT URLConnection...no...we haven't been focusing on using URLConnection
for http-based communication, but rather httpclient (even though
URLConnection is already supported in the ECF filetransfer API for file
retrieval and browsing).
Supporting the ECF Rest API via URLConnection rather than httpclient
would be a nice thing to add, and would not be technically difficult,
but I don't currently have the resources to schedule immediate work on
it. Nonetheless, I would encourage you to bring it up as a possible
addition on the ecf mailing list (see below), and please open an
enhancement request via http://bugs.eclipse.org ...and even better...if
you are willing to contribute some to working on this enhancement that
would be great. We are most willing to work with contributors to make
desired additions as seemless as possible.
Thanks,
Scott
joining ECF mailing list: https://dev.eclipse.org/mailman/listinfo/ecf-dev
Lance Walton wrote:
> Hi all.
>
> Is there any simple, complete example of HTTP POSTing some stuff (let's
> say that I've got it in a String) to a server through a proxy, using
> URLConnection rather than HTTPClient? I can find lots of parts of it but
> not the whole thing.
>
> Regards,
>
> Lance
|
|
|
Powered by
FUDForum. Page generated in 0.06899 seconds