You can translate the question and the replies:

Pass username and password with RESTful api.

when i am calling http://localhost:9090/denodo-restfulws/ from python request,porst() it throws a 401 not authorize error. how can i pass username and password here?
user
28-01-2020 07:17:19 -0500

1 Answer

Hi, Whenever I need to execute HTTP methods from Python to the [RESTful Web Service](https://community.denodo.com/docs/html/browse/7.0/vdp/administration/restful_architecture/restful_web_service/restful_web_service#restful-web-service-http-methods-and-their-equivalent-vql-statements) of Denodo I make sure to add the parameter *auth* to the request method in order to send HTTP Basic Auth. For example: ``` x = requests.post('http://localhost:9090/denodo-restfulws/',data = my_data, auth = ('<your user>', '<your password>')) ``` Hope this helps!
Denodo Team
29-01-2020 19:20:34 -0500
You must sign in to add an answer. If you do not have an account, you can register here