Reputation: 11
I'm testing a web application and I need to send some malformed HTTP requests.
When I set URL to:
URL = https://www.example.com/test?
When I intercept the request in Burp Suite, I see that it removes the ?
at the end.
The URL will be:
https://www.example.com/test
I need to send quotation mark and other things which will be removed by library.
Upvotes: 0
Views: 61
Reputation: 127
A blank querystring is intentionally stripped. If you add some params (like https://www.example.com/test?exampleParam=true
the querystring will not be stripped.
Upvotes: 1
Reputation: 11
https://www.example.com/test?txt=hello
In Python requests, the above address is entered with params
import requests
x = requests.get('https://www.example.com/test', params={'txt': 'hello'})
print(x.status_code)
Upvotes: 0