In Python I was using requests like upper code:
requests.put( url, auth=(User, Password), data=data, ver