case-sensitive for http-method in some strict server
BRU-4550
I have checked the following:
- [x] I have searched existing issues and found nothing related to my issue.
This bug is:
- [x] making Bruno unusable for me
- [ ] slowing me down but I'm able to continue working
- [ ] annoying
- [ ] this feature was working in a previous version but is broken in the current release.
Bruno version
3.3.0
Operating System
Windows 11 22631.6199
Describe the bug
case-sensitive for http-method in some strict server or get 40x (cloudflare) while using http-method in lowercase.
.bru file to reproduce the bug
No response
Screenshots/Live demo link
<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
Hi @hackty, Sorry for the long wait on this one, and thanks for reporting it.
I retested on the latest version (v4.3.0) against a server that rejects lowercase methods, and Bruno now sends the method in uppercase in every case I tried:
- Changing the method in a script with
req.setMethod('post') - Following a 303 redirect
- Creating a request from a cURL command with
-X post
All of them reached the server as POST or GET and returned 200.
One gap is still open. Generate Code can keep a lowercase method, for example curl -X post, and running that snippet against a strict server will still fail. That's on my list.
Could you try v4.3.0 and let me know if you still see the 400? If not, I'll close this out.