GithubHelp home page GithubHelp logo

http-twiddle's Introduction

http-twiddle

This Emacs addon is useful for interactive testing and debugging hand-written HTTP requests:

  1. Activate http-twiddle-mode with M-x.
  2. Write your request.
  3. C-c C-c (re)sends the request.

(C-u C-c C-c to change the destination or port.)

The request can either be written from scratch or you can paste it from a snoop/tcpdump and then twiddle from there.

The mode will also activate automatically when opening a filename ending with .http-twiddle.

Examples

Try M-x http-twiddle-mode-demo in Emacs for a simple get-started example.

If the Content-Length header is not written out (like in the examples below) it'll be added automatically on send.

GET:

GET /user/bob/ HTTP/1.1
Host: example.com
[blank line here]

POST:

POST /user/create/ HTTP/1.1
Host: example.com
Content-Type: text/xml
Connection: close

<user><name>Bob</name><email>[email protected]</email></user>

About

Version 1.0 was written by Luke Gorrie [email protected] in February 2006 and released to the public domain.

Maintained by Hasan Veldstra [email protected] and contributors since September 2008.

Homepage: http://github.com/hassy/http-twiddle/tree/master

http-twiddle's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

http-twiddle's Issues

Response headers are sometimes missing

I'm not sure what's going on, but it seems like the response headers are missing sometimes. I played around and it was fine at first, but now I only see the request headers and response body.

Perhaps there's a race in the process sentinel?

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.