×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2007
    Location
    ..., Earth, Brazil, Paraiba, Campina Grande
    Posts
    72

    Accessing 127.0.0.1 with the XmlHTTPRequest class

    Hi All,

    I'm developing a Widget that access services in a mobile web server, just like this article (http://wiki.forum.nokia.com/index.ph...te_using_PyS60).

    My problem is...

    When i call a xmlhttp.open("GET","http://127.0.0.1:5004/get_speed",true), with "xmlhttp" of the XmlHTTPRequest type, the device (N95 8GB) open the "access points" list and i must chose one to connect it. If i don't chose one, the xmlhttp.open method doesn't work.

    But i'm accessing a local mobile web server. The mobile web server was started previously in the device.

    Anyone know what i can do to the WRT doesn't try to connect an access point and connect the local web server directly?

    Thanks.

  2. #2
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: Accessing 127.0.0.1 with the XmlHTTPRequest class

    Hi, as soon as you enter a URL/IP-Address in the open() Methode, this window pops up; have you tried "localhost" instead? Or have you tried just reading a file? just some ideas.

    Cheers, geri-m

  3. #3
    Registered User
    Join Date
    Mar 2007
    Location
    ..., Earth, Brazil, Paraiba, Campina Grande
    Posts
    72

    Re: Accessing 127.0.0.1 with the XmlHTTPRequest class

    Hi geri-m,

    Thanks for reply! I have tried "localhost" but it doesn't work too.

    I didn't try a local xml file, but i have to access my mobile web server because it access a bluetooth device for my widget.

    But i'll try a local xml file and post the result here.

    Thanks!

  4. #4
    Registered User
    Join Date
    Mar 2007
    Location
    ..., Earth, Brazil, Paraiba, Campina Grande
    Posts
    72

    Re: Accessing 127.0.0.1 with the XmlHTTPRequest class

    I got my N96 last week and did a test. The problem doesn't happen in N96.

    Thx

  5. #5
    Registered User
    Join Date
    Jan 2009
    Posts
    4

    Re: Accessing 127.0.0.1 with the XmlHTTPRequest class

    Hi, as soon as you enter a URL/IP-Address in the open() Methode, this window pops up; have you tried "localhost" instead? Or have you tried just reading a file? just some ideas.
    As far as I know, "localhost" is not working on Symbian system. You can check this link:

    http://wiki.opensource.nokia.com/pro...ages#Localhost

    I was actually doing tha same thing as you did, but I didn't have this problem at all. The only difference in my code is that I wasn't specify the port number. I was just using the default port 80. So maybe you should try using the default http port to see if that works.

Similar Threads

  1. Error Error where are u ??
    By Abhishek_karmakar in forum Symbian
    Replies: 14
    Last Post: 2008-10-20, 09:29
  2. 求助:没有调用到包的问题
    By youpengli in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 1
    Last Post: 2004-05-10, 03:03
  3. 求助:N9200 Series SDK上的问题
    By youpengli in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 3
    Last Post: 2004-05-10, 02:56
  4. definition of class method outside class body?
    By advocatee in forum Symbian
    Replies: 2
    Last Post: 2003-07-02, 07:09
  5. Accessing SIM Application Toolkit via RSat class
    By alexdoor73 in forum Symbian
    Replies: 1
    Last Post: 2003-03-04, 08:37

Posting Permissions

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