Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - jxzhao

Pages: [1]
REST / HTTP / HTTPS / REST Basic authentication only works in localhost
« on: February 06, 2018, 10:16:58 AM »
We are evaluating Chilkat TCL library. One strange thing we noticed is that when using REST with basic authentication, if the request is sent to localhost, the proper response is received (200). But if using a non local host IP, the response is 401 authentication required. We know the request itself and the authentication information is correct by using POSTMAN to verify independently. Does anyone know the reason of this strange behavior? BTW, the chilkat APIs we used are:

set rest [new_CkRest]
set success [CkRest_Connect $rest $addr $port 0 0]
set success [CkRest_SetAuthBasic $rest $userName $password]
set response [CkRest_fullRequestNoBody $rest "GET" "..."]

Thank you for your help in advance.


Pages: [1]