×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    1

    XMLHttpRequest Issue: Unable to pull json from server that requires digest auth

    Hi,

    I am working on a web app that should pull json asynchronously from my web server. I am using XMLHttpRequest for the same, and the web server has been configured for digest authentication!

    var xmlhttp = new XMLHttpRequest();
    xmlhttp.open("GET", url, true, userName, password);

    The app is working fine on my PC browser, and the simulator! However the same isn't working on N8 and the error that i am getting on N8 is 400, bad request!

    Also note that when i open the url in nokia browser, there also it keeps on asking for username/password and doesn't work?

    As a test, I did try loading json from another server that did not require authentication and it worked fine!

    Looks like the digest authentication is causing some issue, and it is something i cannot do away with!

    Any help would be greatly appreciated!

    Thanks,
    Satish

  2. #2
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: XMLHttpRequest Issue: Unable to pull json from server that requires digest auth

    Hi Satish and welcome to forum.

    I tested this around a bit and its should work after you have manually entered username and password to the dialog.
    Testing was done by using just a standard Apache digest authentication and fetching a text file from the protected directory.

    What is the browser version on your N8?

    Br,
    Ilkka

Similar Threads

  1. Sending Json from phone to server
    By rager in forum Python
    Replies: 16
    Last Post: 2008-12-04, 11:27
  2. [moved] How to debug application that requires special capabilities
    By DmitryZayats in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-07-11, 17:34
  3. About Http Digest Authentication with qop=auth-int
    By lengyuecau in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-07-31, 13:09
  4. Phone Lock-Up Using Bluetooth (requires battery pull!!)
    By cyberabi in forum Bluetooth Technology
    Replies: 1
    Last Post: 2003-05-05, 18:40
  5. WAP Gateway won't pull content from web server
    By Nokia_Archived in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2002-05-14, 17:02

Posting Permissions

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