I'm trying to learn how to use Teapot. The documentation is pretty clear about how to do GET: but it's thoroughly useless about how to do POST:. Is there any example for how to do POST:? -- View this message in context: http://forum.world.st/Teapot-and-POST-tp4951616.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
It's basically the same as GET and the others. The request object contains the url encoded form data or whatever was posted. The request object is the same as ZnRequest with a few additional methods. There is a generic at: method that can be used to access both path and queryOrFormParams. -- View this message in context: http://forum.world.st/Teapot-and-POST-tp4951616p4951660.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Thank you very much! Now, I understand. However, it's not *that* obvious. Your excellent POST: example really should be in the documentation. Attila Magyar wrote
It's basically the same as GET and the others. The request object contains the url encoded form data or whatever was posted. The request object is the same as ZnRequest with a few additional methods. There is a generic at: method that can be used to access both path and queryOrFormParams.
-- View this message in context: http://forum.world.st/Teapot-and-POST-tp4951616p4951676.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
I added it to the doc. -- View this message in context: http://forum.world.st/Teapot-and-POST-tp4951616p4951702.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Hi attila did you do a pull request on the book chapter? Stef On Fri, Jun 16, 2017 at 9:16 PM, Attila Magyar <m.magyar3@gmail.com> wrote:
I added it to the doc.
-- View this message in context: http://forum.world.st/Teapot-and-POST-tp4951616p4951702.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Hi Stef, Yeah, I've just sent a pull request. Attila -- View this message in context: http://forum.world.st/Teapot-and-POST-tp4951616p4952553.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
super cool! On Sun, Jun 25, 2017 at 7:35 PM, Attila Magyar <m.magyar3@gmail.com> wrote:
Hi Stef,
Yeah, I've just sent a pull request.
Attila
-- View this message in context: http://forum.world.st/Teapot-and-POST-tp4951616p4952553.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (3)
-
Attila Magyar -
horrido -
Stephane Ducasse