bruno icon indicating copy to clipboard operation
bruno copied to clipboard

case-sensitive for http-method in some strict server

Open hackty opened this issue 6 months ago • 1 comments

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>

hackty avatar May 20 '26 05:05 hackty

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.

aditya-bruno avatar Nov 18 '26 08:11 aditya-bruno