View Single Post
Old 05-09-2008, 10:39 AM   #1 (permalink)
Thumbs Must Hurt
Join Date: Apr 2008
Model: 7100T
Carrier: do not know
Posts: 51
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTP Error 400:Bad Request

Please Login to Remove!

Hi every body,

I have writen the code the display the contents of html string using BrowserSession in simulator But I got the following error

HTTP Error 400:Bad Request
The server could not understand the page request, or was unable to process it for some reasons. Please try loading a different page.

Please help me to correct this error.
public class WebLauncher1 extends UiApplication
    public static void main(String[] args)
        WebLauncher1 theApp = new WebLauncher1();

    public WebLauncher1()
        BrowserSession browserSession = Browser.getDefaultSession();
        String htmlString="<h1>My First Heading </h1>";

Last edited by ahmadgee : 05-09-2008 at 10:40 AM.
Offline   Reply With Quote