This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-13 14:40:46

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Posting To The Forums Through Squeak Blocks!

Okay, so this whole discussion all started in the block library  when MathWizz posted this block:

MathWizz wrote:

I made a panther block JD1 may like... A POST BLOCK! Now you can post to PHP scripts with squeak!

Name:

Code:

post key $String$ and value $String$ to $String$

Type:

Code:

r

Code:

Code:

| args |
args _ Dictionary new.
args at: t1 put: (Array with: t2).
^ (HTTPSocket httpPost: t3 args: args accept: 'application/octet-stream') contents

A test script in PHP:

Code:

<?php
foreach ($_POST as $key => $value)
{
    echo $key . ": " . $value . "\n";
}
?>

big_smile

And so I said that would be cool if you could use that to post to the forums. But when we thought about it we got some problems.
Like Usernames and Passwords. You'd have to have cookies for that.

But there is one thing. We are pretty confident that we can make it. It is possible.
Its just the how that we need to figure out.

And thats why I made this thread.

Offline

 

#2 2011-04-13 20:09:17

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Posting To The Forums Through Squeak Blocks!

Someone made a Python program that posted to the forums, I bet he might have integrated it so Scratch connected to the program and you could login and post through Scratch. I can't seem to find the topic, but it's been done.

Offline

 

#3 2011-04-14 05:25:04

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Posting To The Forums Through Squeak Blocks!

I remember that too! I thought it was you, Magnie, but clearly not  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2011-04-14 12:15:47

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Posting To The Forums Through Squeak Blocks!

Well, I found the topic, apparently it was done in Perl. http://scratch.mit.edu/forums/viewtopic.php?id=52639

Offline

 

Board footer