Options whose value is a URL that is not the request: a proxy, a referer. */
| 2140 | |
| 2141 | /* Options whose value is a URL that is not the request: a proxy, a referer. */ |
| 2142 | static bool sh_http_url_option(const char *o) { |
| 2143 | static const char *const OPTS[] = {"-x", "--proxy", "--preproxy", "-e", |
| 2144 | "--referer", "--doh-url", "--proxy1.0", NULL}; |
| 2145 | return sh_in(o, OPTS); |
| 2146 | } |
| 2147 | |
| 2148 | /* The method curl / wget sends: -X / --request / --method; a body (-d, -F, |
| 2149 | * --data*, --json, --form*, --post-data / --post-file) POST, -T PUT, -I HEAD, |