Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Browser.setUrl(arg0,arg1,arg2)
Browser.setUrl(arg0,arg1,arg2) [message #638214] Wed, 10 November 2010 09:35 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: November 2010
Junior Member
Hello,
im trying to pass specific parameters in header with the org.eclipse.swt.browser.Browser.setUrl(String arg0, String arg1, String[] arg2).

It seems to be working to fetch the specified url..
but not for the underlying/subsequent call.

For example,
let say i try to get google.be with a specific header..

The header is rightly set to fetch url http://www.google.be..
and it is fetched right..
but this page is loading ressources from http://www.google.be/compressiontest/gzip.html
and header parameters are not transmitted.

Is there a way to tell the browser to include a specific header parameter in every underlying http GET/POST/...

Thanx in advance,
marc
Re: Browser.setUrl(arg0,arg1,arg2) [message #638237 is a reply to message #638214] Wed, 10 November 2010 10:29 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 2
Registered: November 2010
Junior Member
Hello again,
i managed that through the AuthentificationListener
(at first i wanted to include proxy login/password in http header with setUrl method but it wasn't used in every subsequent http request... i guess it is IExplorer related so i have no other choice)

Anyway it's working fine now,
thanx for that great toolkit.

marc
Re: Browser.setUrl(arg0,arg1,arg2) [message #808105 is a reply to message #638214] Mon, 27 February 2012 07:09 Go to previous message
Satish Pandey is currently offline Satish Pandey
Messages: 1
Registered: February 2012
Junior Member
Hi,
I am trying to retrive my data on the servlet via. request.getParameter("asdfg");
but is am getting null.

even my postData in servlet is null.

browser.setUrl("//localhost:8090/web_i18n/login.htm?action=checklogin&language=1",
"&asdfg=admin",
new String[] {"User-agent: SWT Browser","Custom-header: this is just a demo"});

Previous Topic:Glib error when disposing a Combo under Linux
Next Topic:Empty table row height.
Goto Forum:
  


Current Time: Fri Jul 25 07:33:09 EDT 2014

Powered by FUDForum. Page generated in 0.02583 seconds