• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Embedded browser

 
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I have an embedded browser in a standalone java app running on windows. The browser calls up web pages over the internet with no problem.



I have a C executable which captures and documents network traffic. I communicate with it by entering http://27.0.0.1:6500 into any browser (it works with them all). It responds with a simple html form (three buttons, a tick box, a label, and one text box).

However I cannot get it to work with the embedded SWT browser.

Be very grateful for any suggested settings that might resolve this. I have searched but with no luck.
 
Nigel Hoath
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answer to my own question but hopefully it might help someone.

It related to strictly abiding by the URL protocol. While it is obvious you can break the rules at times if you stick to the protocol then it always works (well so far).

My code that does the trick:



And embedded browser is perfect for the job. Cheers
 
reply
    Bookmark Topic Watch Topic
  • New Topic