Category : rest

I try to connect to the SSRS REST API via NTLM and cURL, but the authentication fails. Here is my attempt: λ curl –ntlm -v -u localhostosain http://localhost:8080/reports/api/v2.0/CatalogItems Enter host password for user ‘localhostosain’: * Trying ::1… * TCP_NODELAY set * Connected to localhost (::1) port 8080 (#0) * Server auth using NTLM with user ..

Read more

I’m getting this error using my web site to call a REST API on web service URL: I’m using Chrome and IIS 10. Access to XMLHttpRequest at ‘https://service.contoso.com/User/’ from origin ‘https://myweb.contoso.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on he requested resource ..

Read more

Hi when I am writing the following code in python logger = logging.getLogger() logger.setLevel(logging.DEBUG) # create file handler which logs even debug messages fh = logging.FileHandler(‘ThingsSpeakRESTAPI.log’) fh.setLevel(logging.DEBUG) The log file is created in the name ThingsSpeakRESTAPI.log But If I do: filename = datetime.datetime.now().isoformat()+"LOG.log" print(filename) logger = logging.getLogger() logger.setLevel(logging.DEBUG) # create file handler which logs even ..

Read more

I have one application were I need to convert XML to JSON and send Json Data to Cloud using REST API in C++. I googled but I find very few resources , found these useful link https://github.com/Cheedoong/xml2json I want to confirm whether it is possible to convert XML to JSON format easily in C++. As ..

Read more

I have developed a web service( REST API ) as Java Application(Java version: 1.8) and now I want to convert jar file to exe file and should run as windows service. I tried above problem in cmd C:Windowssystem32>sc create "DataTransfer" binpath= "D:web servicewebservice.exe" start= auto [SC] CreateService SUCCESS C:Windowssystem32>reg add "HKLMSYSTEMCurrentControlSetServicesDataTransferParameters" /v Application /d "D:web ..

Read more

I have created a windows forms application in c++ (visual studio) to capture values from the web address(Server works on json) but did not find any json related inclusions in visual studio. Could any one help me out how to create the windows forms application with json support in visual studio. Source: Windows Que..

Read more

I have a python client that sends a request to the host along with the params and Authentication header as below: Client code: my_headers = {‘Authorization’ : ‘Basic QWxhZGRpbjpPcGVuU2VzYW1l’} params = ( (‘id’, ‘2’), (‘name’, ‘pan’) ) response = requests.get(‘https://XXXXXXXX/samplePan/getStu’, headers=my_headers, params=params, verify=False) I’m using Pistache c++ framework for REST services at host side. I ..

Read more