Giter VIP home page Giter VIP logo

kuraianto's Introduction

kuraianto

Usage

Compile with a simple make

usage: [options] [ip:]port [...files]
Options:
	range: value | min-max | -max
	request: [Type,uri,[Header-Name: value,]*bodySize;[repeat;]]+
	headers: [Name: value#]+
	-r range=5		Set packet size when receiving.
	-s range=5		Set packet size when sending.
	-t number=5		Maximum time to wait (s) if there is no response.
	-i range=0		Set interval (ms) between sending and receiving.
	-m number=0		Maximum size (bytes) the client can send.
	--no-output		Do not display received response.
	-g requests		Generate one or many requests.
	The next options are only applied on requests generated with -g
	-h headers		Add each listed headers to the generated requests.
	-c range=8		Set the size of sent chunk if the generated request has ``Transfer-Encoding: chunked``

kuraianto is reading from stdin if no files are specified.
cat examples/GET_simple.req | ./kuraianto 8000 is equivalent to ./kuraianto 8000 examples/GET_simple.req

Generate requests

You can generate Requests in the command line by passing the -g options.
Requests are build with the following syntax:

Type,uri,[Header-Name: value,]*bodySize[;repeat]
# A simple GET Request to index.html
#	GET,/index.html,0
# 2 HEAD and 1 GET Request to / and 4 POST Requests to /upload with an Header and a bodysize of 4242 bytes
#	HEAD,/,0;2;GET,/index,0;POST,/upload,Transfer-Encoding: chunked,4242;4
# 3 POST Requests to /upload with Headers and a bodysize of 424242 bytes
#	POST,/upload,Transfer-Encoding: chunked,X-Token: token,424242;3

The repeat parameter duplicate the previous request x amount of times.
Headers added with -h are added to all generated requests.
If the Transfer-Encoding header is set to chunked kuraianto will send chunks of the size of your -c option.

TODO

  • Avoid displaying message if the previous one was really close

kuraianto's People

Contributors

glagan avatar

Watchers

 avatar

Forkers

jason-time

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.