Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master

This branch is 5 commits ahead, 15 commits behind runemadsen:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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"));
Something went wrong with that request. Please try again.