currently I am doing a work to handle the 400 bad request status error. I am wondering how to create a request that server will return 400 status.
相关问题
- Angular RxJS mergeMap types
- Google Apps Script: testing doPost() with cURL
- How to instantiate Http service in main.ts manuall
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- PHP Empty $_POST
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Is a unicode user agent legal inside an HTTP heade
- git: retry if http request failed
- Flutter - http.get fails on macos build target: Co
- C# HttpClient.SendAsync always returns 404 but URL
- Response body is null, status is 200
- Returning plain text or other arbitary file in ASP
- jquery how to get the status message returned by a
A HTTP 400 error occurs due to bad syntax in the request.
To create a request that forces the server to return a 400 error, you can:
I found an easy way to generate 400 Bad Request Error:
Appending
/%
at the end of the URL should work for most websites.For example:
The above URLs generate the following page:
Note that this method doesn't work for ALL websites on the internet.
Since the server can decide what to do when seeing
/%
.