Skip to content

v1.1.1

Choose a tag to compare

@Athlon1600 Athlon1600 released this 15 May 13:15
· 20 commits to master since this release
  • redirects after POST request are now being handled properly

https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html

When following a Location:, the 3xx response code that redirected it also dictates which request method it will use in the subsequent request: For 301, 302 and 303 responses libcurl will switch method from POST to GET unless CURLOPT_POSTREDIR instructs libcurl otherwise. All other 3xx codes will make libcurl send the same method again.

the switch does not happen if CURLOPT_CUSTOMREQUEST option is set. Thanks to:
Kong/insomnia#227