I need your expertise advise please.
I have a Universe Basic program that upload the data to the remote server using API and REST command.
In this program, we included the PROXY detail in the REST command routine.
This program been working fine.
Recently out network system has been upgraded and we NO longer have a PROXY server. So the program has to be amended to exclude the PROXY details from the REST command routine.
Since this amendment, the program no longer work.
It return value = 3, during the submitRequest command,
The following are the REST command routine, prior amendment.
1 - STAT = setHTTPDefault(“PROXY_NAME”,Proxy Name).
2 - STAT = setHTTPDefault(“PROXY_PORT”,Proxy Port).
3 - STAT = setHTTPDefault(“AUTHENTICATE”,Proxy Auth).
4 - STAT = setHTTPDefault(“VERSION”,“1.1”).
5 - STAT = createSecurityContext(hContext, ‘’)
6 - STAT = addAuthenticationRule(hContext,ServerOrClient,AuthenticationRule, AuthenticationType)
HTTPHeaders = `Content-Typeÿapplication/json; charset=utf-8¨Cache-Controlÿno-cache¨X-API-TOKENÿTOKEN-ID¨accept-encodingÿgzip, deflate’
7 - STAT = setHTTPDefault(‘HEADERS’,HTTPHeaders)
8 - STAT = createRequest(URL,“GET”,hRequest)
9 - STAT = submitRequest(hRequest,8000,"",ResponseHeaders,ResponseData, HTTPStatus)
Prior the program amendment, the return value of submitRequest always = 0 (the data got uploaded on the remote server)
In the amended program, option 1,2 and 3 have taken been excluded.
Since the program been amended.the return value of submitRequest always = 3 (network error)
Any advise would be appreciated. Thanks.