Log in

FutureSight Forums

Index » Tech help » Make POST requests with Bingo? (Atom feed)

Pages: 1

#1: 25 May 2015 10:27

offline Krett12

Member

Hi! I was making a vandalism-removing bot for the Infosphere, and I decided to try something new and use Bingo instead (what an odd choice!). However, you can't use GET requests to log in (I need to log in to have the ROLLBACK and BLOCK rights). Can I use it to make POST requests?

#2: 25 May 2015 12:27

offline Jacob

Administrator
user avatar

Although I am not the developer of Bingo (that's LS97), I don't think it is capable of making HTTP POST requests without modification. However, you could potentially modify it yourself or use Panther (in which you can easily add your own Squeak-coded blocks to projects) and make a POST block there.


Jacob G.
Executive director and co-head developer

#3: 25 May 2015 15:26 - Edited

offline Krett12

Member

You're right! Panther cannot be downloaded, but I still have a copy.


Have any Sqkeak code for that?

#4: 27 May 2015 08:22

offline Jacob

Administrator
user avatar

Krett12 wrote
You're right! Panther cannot be downloaded, but I still have a copy.


Have any Sqkeak code for that?

It should be something like this:

HTTPSocket httpPost: 'url' args:'data', 'accept:'accept'


Jacob G.
Executive director and co-head developer

#5: 27 May 2015 11:33

offline Krett12

Member

Jacob wrote

Krett12 wrote
You're right! Panther cannot be downloaded, but I still have a copy.


Have any Sqkeak code for that?

It should be something like this:

HTTPSocket httpPost: 'url' args:'data', 'accept:'accept'

I get one of those cute little pink boxes ''every'' time, you?

#6: 28 May 2015 00:38

offline Jacob

Administrator
user avatar

Krett12 wrote

Jacob wrote

Krett12 wrote
You're right! Panther cannot be downloaded, but I still have a copy.


Have any Sqkeak code for that?

It should be something like this:

HTTPSocket httpPost: 'url' args:'data', 'accept:'accept'

I get one of those cute little pink boxes ''every'' time, you?

I don't actually have a copy of Panther on me right now, that was just a suggestion. However, that apostrophe before the first "accept:" shouldn't be there.


Jacob G.
Executive director and co-head developer

#7: 28 May 2015 01:53

offline Krett12

Member

Hmm. I'll try it again.

#8: 28 May 2015 01:57

offline Krett12

Member

Now we've got a yellow "Syntax Error" box when I use yours.

#9: 28 May 2015 04:11

offline Jacob

Administrator
user avatar

Krett12 wrote
Now we've got a yellow "Syntax Error" box when I use yours.

I haven't worked with Squeak in a long time, so unfortunately I'm really not able to provide any more assistance. Ask around on the Scratch forums for how to make POST requests with Squeak.


Jacob G.
Executive director and co-head developer

#10: 28 May 2015 11:26

offline Krett12

Member

You might have forgotten, but because of you, I can't really do that.....

#11: 28 May 2015 12:43

offline Jacob

Administrator
user avatar

Krett12 wrote
You might have forgotten, but because of you, I can't really do that.....

That's unfortunate, but I haven't used Squeak in a long time and don't really remember how to use it. You can also try dissecting the code used for uploading projects.


Jacob G.
Executive director and co-head developer

#12: 29 May 2015 02:03

offline Krett12

Member

Hmm--I'll look at it.

#13: 29 May 2015 02:11

offline Krett12

Member

Well, the text "MIMEDocument (text/html; charset=utf-8, 8, 996 bytes)" is being reported from the block (when using login api)

#14: 01 Jun 2015 04:24

offline Krett12

Member

How do I fix it?

#15: 02 Jun 2015 09:26

offline Krett12

Member

Why are you now refusing to answer me?!?!?! I don't like your tech support very much anymore /:(

#16: 15 Jun 2015 00:40

offline Jacob

Administrator
user avatar

Krett12 wrote
Well, the text "MIMEDocument (text/html; charset=utf-8, 8, 996 bytes)" is being reported from the block (when using login api)

That must be the header of the document. As I said before, I haven't used Squeak in a long time and don't remember exactly how to get the body of the response.

Krett12 wrote
Why are you now refusing to answer me?!?!?! I don't like your tech support very much anymore /:(

I wasn't refusing to answer you, I was just out of town.


Jacob G.
Executive director and co-head developer

Index » Tech help » Make POST requests with Bingo? (Atom feed)

Pages: 1

Embed topic (Show)