Task: Fix Python Requests POST Being Converted to GET Due to URL Redirect
Task: Fix Python Requests POST Being Converted to GET Due to URL Redirect: a task in Terminal-Lego-15k (Harbor dataset). When using Python's requests library to make a POST request to a URL that ends with a trailing slash followed by query parameters (e.g., /path/?param=value ), the server may…
The task
When using Python's `requests` library to make a POST request to a URL that ends with a trailing slash followed by query parameters (e.g., `/path/?param=value`), the server may respond with a 301/302 redirect. By default, the `requests` library follows redirects, and for 301/302 status codes, it converts the POST…
Part of PrimeIntellect/Terminal-Lego-15k.