MCPcopy Create free account
hub / github.com/apache/httpd / curl_upload

Method curl_upload

test/pyhttpd/env.py:851–857  ·  view source on GitHub ↗
(self, url, fpath, timeout=5, options=None)

Source from the content-addressed store, hash-verified

849 return self.curl_raw([url], insecure=insecure, options=options)
850
851 def curl_upload(self, url, fpath, timeout=5, options=None):
852 if not options:
853 options = []
854 options.extend([
855 "--form", ("file=@%s" % fpath)
856 ])
857 return self.curl_raw(urls=[url], timeout=timeout, options=options)
858
859 def curl_post_data(self, url, data="", timeout=5, options=None):
860 if not options:

Callers 11

test_h1_005_01Method · 0.80
test_h1_005_02Method · 0.80
post_and_verifyMethod · 0.80

Calls 1

curl_rawMethod · 0.95

Tested by 11

test_h1_005_01Method · 0.64
test_h1_005_02Method · 0.64
post_and_verifyMethod · 0.64