set CURLOPT_CUSTOMREQUEST regardless of request size

When doing an URL request (ex. fopen/file_get_contents) with a context
that specifies a method but no content, we should still respect the
specified request method.

Not sure how to add a test for this since the deprecation of the
built-in webserver.

Closes #3234.