Blank Response From Curl
-
Hi
After getting token from https://smartapi.angelbroking.com/publisher-login?api_key=xxxwhen I use this token in other API
I amgetting blank response.auth_token = request.args.get('auth_token', default = 1, type = str) conn = http.client.HTTPSConnection("apiconnect.angelbroking.com") payload = "" hostname = socket.gethostname() clientLocalIP=socket.gethostbyname(hostname) clientPublicIP=get('https://api.ipify.org').text headers = { 'Authorization': 'Bearer '+auth_token, 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-UserType': 'USER', 'X-SourceID': 'WEB', 'X-ClientLocalIP': clientLocalIP, 'X-ClientPublicIP': clientPublicIP, 'X-PrivateKey': 'XRAIVVdO' } conn.request("POST","/rest/secure/angelbroking/user/v1/getProfile",payload,headers) res = conn.getresponse() data = res.read() print(data) return data.decode("utf-8")
Response --> ''
What is the error here?
-
HI @Ved12345 , Thank you for remote access. The issue is now resolved.