Guest User

Untitled

a guest
Nov 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. curl -i -u username:password -H "Content-Type: application/json;charset=utf-8" -X POST -d '{"id_no":"7877"}' https://host/XXXX/ -k
  2.  
  3. headers = {'Content-Type': 'application/json;charset=utf-8'}
  4. parameter = {'id_no': 7877}
  5. p_response = requests.get(url,auth=('username', 'password'), headers=headers,params=parameter)
  6.  
  7. requests.exceptions.SSLError: HTTPSConnectionPool(host='host', port=443): Max retries exceeded with url: /id_no/?id_no=7877 (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)'),))
Add Comment
Please, Sign In to add comment