Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » HTTP POST through a proxy
HTTP POST through a proxy [message #499753] Mon, 23 November 2009 23:06 Go to next message
Lance Walton is currently offline Lance WaltonFriend
Messages: 5
Registered: July 2009
Junior Member
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 #500357 is a reply to message #499753] Wed, 25 November 2009 18:18 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
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 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
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
Previous Topic:HTTP POST through a proxy
Next Topic:Where is ecf.fileshare. IFileShare in web Edlipse class?
Goto Forum:
  


Current Time: Tue Apr 16 07:19:29 GMT 2024

Powered by FUDForum. Page generated in 0.13394 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top