04-26-2014 08:25 AM
Hi,
I'd like to ask for some help on my problem. I wrote a simple code to communicate with a server using the http GET vi and initially I was able to receive correct response from the server, which does not require any authorization process. But when I tried to get the data that requires user authorization (i.e. id & pw), I got the following error:
HTTP/1.1 401 Unauthorized
Date: Sun, 27 Apr 2014 07:01:28 GMT
WWW-Authenticate: Basic realm="/GASA_RTCM23"
Content-Type: text/html
Connection: close
I found out that this error indicates that something went wrong in the authorization process. I double-checked my id and password and made sure that they are correct but I still got the same error. Is there any other possibilities that might cause this error? I am attaching a copy of the code and it is a very simple one.
Thank you.
- Pete
06-04-2014 08:37 AM
Are the password and user name in the image supposed to work?
Because even in a browser the login is invalid.
06-14-2021 08:14 PM
Hi there,
I got the same error saying it was error 401 unauthorized with error codes -251042 and 5080001 displayed as well. This was after no change to the code that had been working yesterday. I restarted the web server from the NI Web Server Configuration dialogue launched from NXG and now it runs without error.
Regards,
Izzy