(self, url, fpath, timeout=5, options=None)
| 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: |