Index » Tech help » Make POST requests with Bingo? (Atom feed)
Pages: 1
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?
Administrator
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.
Member
You're right! Panther cannot be downloaded, but I still have a copy.
Have any Sqkeak code for that?
Administrator
It should be something like this:
HTTPSocket httpPost: 'url' args:'data', 'accept:'accept'
Member
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?
Administrator
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.
Member
Hmm. I'll try it again.
Member
Now we've got a yellow "Syntax Error" box when I use yours.
Administrator
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.
Member
You might have forgotten, but because of you, I can't really do that.....
Administrator
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.
Member
Hmm--I'll look at it.
Member
Well, the text "MIMEDocument (text/html; charset=utf-8, 8, 996 bytes)" is being reported from the block (when using login api)
Member
How do I fix it?
Member
Why are you now refusing to answer me?!?!?! I don't like your tech support very much anymore /:(
Administrator
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.
I wasn't refusing to answer you, I was just out of town.
Index » Tech help » Make POST requests with Bingo? (Atom feed)
Pages: 1