python 2.7 - requests.delete provokes a GET instead of DELETE on artifactory -


so, i'm trying clean artifactory runs on tomcat. i've written script give me want. however, when requests.delete() , in access logs, see request used url, , nothing deleted.

code:

import requests   username="admin" password="somesecurepassword"   r = requests.delete('http://artifactory.company.com/artifactory/api/storage/libs-release-local/my/path/to/delete/0.1.62', auth = (username, password)) 

log:

10.10.5.200 - - [07/apr/2017:16:44:28 +0200] "get /artifactory/api/storage/libs-release-local/my/path/to/delete/0.1.62 http/1.1" 200 579

i suspect either tomcat or artifactory configuration has changed, don't know start looking. google didn't turn off bat either artifactory or python.

the delete item rest api using following request format:

delete http://artifactory.company.com/artifactory/libs-release-local/my/path/to/delete/0.1.62 

please note not need /api/storage part of request url.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -