From b036ee43298d599f06f7fb8d95750b509ba1aa63 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sat, 5 Dec 2015 23:33:53 +0100 Subject: [PATCH 2/3] misc: add an http_delete_request helper function (#9210) --- wcs/qommon/misc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcs/qommon/misc.py b/wcs/qommon/misc.py index 06ec38c..02ec846 100644 --- a/wcs/qommon/misc.py +++ b/wcs/qommon/misc.py @@ -278,6 +278,9 @@ def http_get_page(url, headers={}, timeout=None): def http_post_request(url, body=None, headers={}, timeout=None): return _http_request(url, 'POST', body, headers, timeout=timeout) +def http_delete_request(url, headers={}, timeout=None): + return _http_request(url, 'DELETE', None, headers, timeout=timeout) + def get_variadic_url(url, variables, encode_query=True): # substitution in an URL : try to be safe -- 2.1.4