Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Browser.setUrl(String url, String postData, String[] headers)(setting headers in RAP browser)
Browser.setUrl(String url, String postData, String[] headers) [message #642113] Mon, 29 November 2010 21:45 Go to next message
Mark Proe is currently offline Mark ProeFriend
Messages: 34
Registered: July 2009
Member
Hello,

In SWT Browser, I am able to call setUrl(String url, String postData, String[] headers) to include POST data and headers with my url.

However in RWT Browser, I can only call setUrl(String url). There is no way for me to include POST data and headers.

My question is....Is there an alternative to this method that will achieve the same result?

Thanks,
Mark
Re: Browser.setUrl(String url, String postData, String[] headers) [message #642395 is a reply to message #642113] Wed, 01 December 2010 07:50 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Mark,
the Browser widget in RAP is based on iframe. I'm not sure if it's
passible at all to set the postData and headers to the iframe at all. If
you need to send a data, maybe you could use a standard query string,
attached to the URL.
HTH,
Ivan

On 29.11.2010 11:45 PM, Mark Proe wrote:
> Hello,
>
> In SWT Browser, I am able to call setUrl(String url, String postData,
> String[] headers) to include POST data and headers with my url.
>
> However in RWT Browser, I can only call setUrl(String url). There is
> no way for me to include POST data and headers.
>
> My question is....Is there an alternative to this method that will
> achieve the same result?
>
> Thanks,
> Mark
Re: Browser.setUrl(String url, String postData, String[] headers) [message #642598 is a reply to message #642395] Wed, 01 December 2010 22:16 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

> the Browser widget in RAP is based on iframe. I'm not sure if it's
> passible at all to set the postData and headers to the iframe at all.

I think it should be possible by creating a hidden form next to the
iframe and sending the post data from this form directly to the iframe:
http://stackoverflow.com/questions/168455/how-do-you-post-to -an-iframe

If technically possible I think we should consider implementing this
method as it would contribute to the mashup story.

Ralf

--
Ralf Sternberg

Twitter: http://twitter.com/ralfstx
Blog: http://www.eclipsesource.com/blogs/

Professional support for RAP and RCP?
http://www.eclipsesource.com/support/
Previous Topic:Doing POST to external server
Next Topic:RWT.getLocale() in Threads
Goto Forum:
  


Current Time: Tue Apr 16 19:31:12 GMT 2024

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

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

Back to the top