[LANGUAGE]/PYTHON
-
[파이썬] 웹로직 M/W에서 HTTP Rest API를 받아오자[LANGUAGE]/PYTHON 2020. 7. 16. 10:11
아래와 같이 코드 실행시 다음과 같이 JSON data를 가져올 수 있다. import requests from requests.auth import HTTPBasicAuth, HTTPDigestAuth import json auth = HTTPBasicAuth(username='1004lucifer', password='1234qwer') webLogicUrl = 'http://192.168.43.51:7001' serverUrl = 'http://192.168.43.51:7001/management/tenant-monitoring/servers/AdminServer' clusterUrl = 'http://192.168.43.51:7001/management/tenant-monitoring/cluste..