LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I get HTTP 401 error even with correct id and pasword

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

0 Kudos
Message 1 of 3
(2,777 Views)

Are the password and user name in the image supposed to work?

 

 

Because even in a browser the login is invalid.

0 Kudos
Message 2 of 3
(2,582 Views)

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.

 

IzzyPrice_0-1623719656569.png

Regards,

Izzy

0 Kudos
Message 3 of 3
(1,422 Views)