Switch branches/tags
Nothing to show
Pull request Compare This branch is 5 commits ahead, 38 commits behind runemadsen:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
HttpCore
json
p5
src/httprocessing
.gitignore
README.md

README.md

Introduction

HTTProcessing is a small library that takes the pain out of doing HTTP requests in Processing. To download the library for use in your Processing sketch, download httprocessing.zip.

HTTProcessing is based on code by Chris Allick and Daniel Shiffman.

Installation

First download httprocessing.zip

Unzip the files into the "code" folder of your Processing sketch

Then import the library in your sketch:

import httprocessing.*;

Then you can make GET and POST requests from your code:

GetRequest get = new GetRequest("http://httprocessing.heroku.com");
get.send();
println("Reponse Content: " + get.getContent());
println("Reponse Content-Length Header: " + get.getHeader("Content-Length"));

PostRequest post = new PostRequest("http://httprocessing.heroku.com");
post.addData("name", "Rune");
post.send();
println("Reponse Content: " + post.getContent());
println("Reponse Content-Length Header: " + post.getHeader("Content-Length"));