Skip to main content



      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 16:45 Go to next message
Eclipse UserFriend
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 02:50 Go to previous messageGo to next message
Eclipse UserFriend
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 17:16 Go to previous message
Eclipse UserFriend
> 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: Fri Jul 04 16:08:11 EDT 2025

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

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

Back to the top