0

I am doing a Scan work,and Need to send http requests without urlencode. The web application use $_SERVER['REQUEST_URI'](php) to get URL, and I must use "<" or ">" to do my scan work. But python requests will encode ">" to "%3E". Is there any way to send http request without urlencode(requests, urllib, urllib2), except sending http requests using socket?

Firstly, I use requests to do it:

import requests requests.get("http://test.com/index.php?id=1 and 1>1")

But the truth url the requests get is: http://test.com/index.php?id=1 and 1%3E1

This question has confused me for days, I'll be very happy to get any solution from you, and thanks all.

1 Answer 1

1

You can pass string parameters using the params argument. Like this:

requests.get("http://test.com/index.php", params="id=1 and 1>1")
Sign up to request clarification or add additional context in comments.

2 Comments

Please add some explanation to your answer!
Sorry, I tried this way, But in burpsuite it's still test.com/index.php?id=1%20and%201%3E1"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.