Skip to content
A python module that accepts an HTTP request file and returns a dictionary of headers and post data
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



A python module to extract headers and POST data from a file containing intercepted HTTP request.

Let's say we have a file named request.txt that contains following HTTP request:

POST /user/follow HTTP/1.1
User-Agent: some user agent
Accept: application/json, text/plain, */*
Accept-Language: pl,en-US;q=0.7,en;q=0.3
Content-Type: application/json;charset=utf-8
X-CSRF-TOKEN: Ab1/2cde3fGH
Content-Length: 27
Cookie: some-cookie=;
DNT: 1
Connection: close


To send the above request using inbuilt functions of python like requests.get(), we need to explicitely specify each of the headers and values manually.

Here Burpee comes to save the day. It simply accepts name of the file containing the HTTP request as parameter and returns two things:

  • Dictionary: Headers and their respective values
  • String: Supplied Post data



As demonstrated in the above proofs, once we get dictionary of headers and post data, we can simply pass these headers and post data to functions like requests.get() , etc.

Request can be directly requested by using the request() function in the module.
Burpee.burpee.request(file_name , https = [True/False]) takes two arguments:

  • Name of the file containing request
  • Whether to request HTTP or HTTPS

Since this function uses requests.get() and from inside, hence it also returns the requests.models.Response object.


The request() function only supports two methods i.e. GET and POST


Twitter: @xscorp7
Github: xscorp(GITHUB)

You can’t perform that action at this time.