{"id":4637,"date":"2024-01-19T14:44:32","date_gmt":"2024-01-19T14:44:32","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4637"},"modified":"2025-05-01T16:28:57","modified_gmt":"2025-05-01T15:28:57","slug":"auth-credentials","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/tcp-ip\/http\/auth-credentials","title":{"rendered":"Auth credentials"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Adding auth credentials to any requests.get or .post<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>    auth = requests.auth.HTTPDigestAuth(username, password)\n    response = requests.get(request_url, auth=auth, timeout=10)    #Timeout in secs<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Adding auth credentials to any requests.get or .post<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[369],"tags":[],"class_list":["post-4637","post","type-post","status-publish","format-standard","hentry","category-http"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4637"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4637\/revisions"}],"predecessor-version":[{"id":4924,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4637\/revisions\/4924"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}