01-08-2013 01:04 AM
I have some issue in that I can not understand.
I got HTTP response code 401 when I tried to authenticate.
I entered the right username & password thought I got 401.
While I used the same password & username in other device I got perfect response.
So, it is hard to me to understand what was the issue?
Is there any issue regarding Wifi / BES / BIS ?
Is any possibility that BES server has blocked the URL ?
If anyone has any answer please suggest your idea.
01-08-2013 04:23 AM
Have a look at this:
You have a number of outstanding questions that I'm guessing are probably solved, since you are no longer posting on them. Can you please go through these and mark up the solutions. Thanks.
To save you looking, here are some of them:
01-08-2013 04:53 AM - edited 01-08-2013 05:05 AM
Thanks for reply,
I go through your posted link.
I have tested my code regarding authentication, it worked on so many devices, issue came on only one device, may be in that device we use Enterprise Server for connection , so just want to know how to resolve that issue ?
But on those threads still I did not get solutions,so I did not mark them as solutions.
01-08-2013 05:26 AM
There is a trick with BES. Even if you know that your request is going to require a login, you can not supply the basic authentication header until it is actually requested. So do not supply it on the first request, wait for the BES to come back with a 401 and then connect again supplying it. The KB article I pointed you at demonstrates code that does this. I suspect that is the problem you are having.
"But on those threads still I did not get solutions,so I did not mark them as solutions."
May be not, but those Threads are waiting for input from you and have been for some time. If you can't get a solution from the input so far perhaps you should try something or ask another question? Or are you still working on them?