Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » P2 Update Site - set http headers in request
P2 Update Site - set http headers in request [message #130664] Tue, 05 May 2009 07:02 Go to next message
Glen Tan is currently offline Glen TanFriend
Messages: 1
Registered: July 2009
Junior Member
I am currently working on an Eclipse RCP based project where I have
successfully p2-enabled my Eclipse RCP application. I have also been able
to have my application be able to automatically check for updates upon
startup.

BUT, there is a requirement to pass in my credentials (user name and
password) via HTTP headers or URL parameter. There is an authentication
mechanism between the RCP application and the update site web server.

Does anyone know if which plugin can be extended or customised to enable
such feature?

Thanks in advance
Re: P2 Update Site - set http headers in request [message #135022 is a reply to message #130664] Wed, 08 July 2009 22:54 Go to previous message
Eclipse UserFriend
Originally posted by: slewis.composent.com

Hi Glen,

Glen Tan wrote:
> I am currently working on an Eclipse RCP based project where I have
> successfully p2-enabled my Eclipse RCP application. I have also been
> able to have my application be able to automatically check for updates
> upon startup.
>
> BUT, there is a requirement to pass in my credentials (user name and
> password) via HTTP headers or URL parameter. There is an authentication
> mechanism between the RCP application and the update site web server.
>
> Does anyone know if which plugin can be extended or customised to enable
> such feature?

Not at present (Galileo/ECF 3.5), but there are two possible solutions:

1) It's quite possible for you to implement your own ECF filetransfer
provider (and introduce your own custom authentication for http) by
extending the appropriate classes in the httpclient provider
(org.eclipse.ecf.provider.filetransfer.httpclient project). If you
would like to do this, please let us know on ecf-dev at eclipse.org
mailing list and we will support you as much as possible.

2) we (ECF) have an enhancement request to add the ability to pass http
headers into the file transfer:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=282608

Once this is in place (my guess would be for 3.5.1 in September), then
you would be able to provide headers. I don't believe P2 currently
exposes this API for specifying http request headers, however, so that
would require a p2 enhancement to complete.

So for immediate effect, my suggestion would be to do 1.

Scott
Previous Topic:Update with p2 fails in RCP app
Next Topic:ExtensionRegistry--Reference loop
Goto Forum:
  


Current Time: Wed Apr 24 17:33:16 GMT 2024

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

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

Back to the top