Skip to content
  1. Apr 24, 2009
  2. Apr 23, 2009
  3. Apr 22, 2009
  4. Apr 21, 2009
  5. Apr 20, 2009
  6. Apr 19, 2009
  7. Apr 18, 2009
  8. Apr 17, 2009
  9. Apr 16, 2009
  10. Apr 15, 2009
  11. Apr 14, 2009
  12. Apr 13, 2009
    • Daniel Stenberg's avatar
      - bug report #2727981 (http://curl.haxx.se/bug/view.cgi?id=2727981) by Martin · 379bfa5a
      Daniel Stenberg authored
        Storsjo pointed out how setting CURLOPT_NOBODY to 0 could be downright
        confusing as it set the method to either GET or HEAD. The example he showed
        looked like:
      
         curl_easy_setopt(curl, CURLOPT_PUT, 1);
         curl_easy_setopt(curl, CURLOPT_NOBODY, 0);
      
        The new way doesn't alter the method until the request is about to start. If
        CURLOPT_NOBODY is then 1 the HTTP request will be HEAD. If CURLOPT_NOBODY is
        0 and the request happens to have been set to HEAD, it will then instead be
        set to GET. I believe this will be less surprising to users, and hopefully
        not hit any existing users badly.
      379bfa5a