×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    1

    Listening HTTP AJAX request

    Hi,

    i am developing a very basic webserver running on my mobile phone.

    i am using socket connection to listen port 80.

    on the other side i have an HTML site sending reqeust to my webserver via AJAX with open method

    XMLHttpRequest.open('HEAD', 'http://127.0.0.1/' + cmd_txt,true);

    My problem is that i cant receive any data in my webserver.

    in = client.openInputStream();
    ch = in.read();

    How can i read incoming HTTP AJAX request with openInputStream or should ı use any other method?

    Thanks

  2. #2
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    124

    Cool Re: Listening HTTP AJAX request

    There are multimple factors invilved here, so please narrow down the problem.

    * It looks like your client (browser) is also running on the same device

    * What type of browser are you using? (with sufficient jscript/ajax support)

    * Is the browser able to connect directly with your back-end webapp? (typing http://localhost/blah.blah)

    * Write another small client app to simulate the browser and try to open a Socket connection to localhost:80 and see if your web application receives the connection.

    ~b

Similar Threads

  1. Sending HTTP GET request with body
    By moldovan_catalin in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-01-13, 18:49
  2. HTTP Post request structure
    By alav in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2008-08-12, 10:49
  3. Replies: 6
    Last Post: 2008-05-15, 07:55
  4. How can I call http session simultaneously?
    By gusta72 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-10-19, 19:58
  5. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×