We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › HTTP POST in processing.net for Tumblr API
Page Index Toggle Pages: 1
HTTP POST in processing.net for Tumblr API (Read 652 times)
HTTP POST in processing.net for Tumblr API
Feb 10th, 2009, 12:31am
 
I am writing a little Tumblr client for processing. (http://www.tumblr.com/docs/api#api_write) I am having trouble figuring out how to utilize the http POST command using client.write(" HTTP GARBAGE HERE")

Does anyone have an example of using the Post command in Processing that I can look at?

Thanks in advance.

I could post the code I'm working with... but I'd rather figure it out for myself.

Lindsey
Re: HTTP POST in processing.net for Tumblr API
Reply #1 - Feb 10th, 2009, 11:41am
 
Here's a quick overview of a POST request:

Code:
POST /foo.cgi HTTP/1.1
Host: www.bar.com
Content-Length: 24
Content-Type: application/x-www-form-urlencoded

user=joe@password=bloggs
Re: HTTP POST in processing.net for Tumblr API
Reply #2 - Feb 10th, 2009, 1:35pm
 
I made this in Java (to be used in Processing) once (to upload data, but the POST mechanism is there): Re: save to web --- image export

I haven't tried to do it with pure Processing's Network library, but the base principles apply there.
Page Index Toggle Pages: 1