Giter Site home page Giter Site logo

httparser's Introduction

HTTParser

About

HTTParser is a script that turns a raw HTTP request into a Python object.

Usage

from httparser import HttpRequest

HR = HttpRequest()
raw_request = """POST /something.php?foo=bar HTTP/1.1
Host: foo.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 13

say=Hi&to=Mom"""

HR.set_raw_request(raw_request)

Why I developed that?

Working in web app pentest with Burp Suite makes me deal with raw HTTP everyday. And I love work with Python, and with the requests lib. Whenever I create a new script, I need to separate the request with regex or something like that. So I decide to write a class where I can just paste my request and work with a object. With HTTParser I can change, add and remove the headers and cookies.

Why "HTTParser"?

Yeah I know, that doesn't literally parse anything... But when I working on the script I needed to parse everything! And come on, the name is really cool!!!

Help-me

If you can give my script a chance I'll be very happy! Just paste a request on it and see what comes out. Send me some types, or just ideas, or anything! Everything will be read with pleasure <3

httparser's People

Contributors

r4topunk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.