i am writing a facebook app in seaside, and i haven't fired it up in
some time.. it looks like there is a new web server installed 'ZnZinc' .. everything seems to be running okay, but i am having a pretty simple issue.. i am investigating the facebook authentication system.. here's what happens: when you hit a facebook app, it sends a request to your app (which lives inside and iframe).. this app has some a post parameter that you need to retrieve and decode.. while i write the tests and code for the decoding method, i would like to just grab the post parameters via a log of requests to the image.. the next question will be.. inside my application, i will need to grab this post under certain conditions.. how would i go about grabbing the post request inside my app? thanks! -- ---- peace, sergio photographer, journalist, visionary http://www.ThoseOptimizeGuys.com http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
On Sat, Sep 8, 2012 at 8:20 PM, sergio_101 <[hidden email]> wrote:
> i am writing a facebook app in seaside, and i haven't fired it up in > some time.. it looks like there is a new web server installed 'ZnZinc' > .. everything seems to be running okay, but i am having a pretty > simple issue.. > > i am investigating the facebook authentication system.. > > here's what happens: > > when you hit a facebook app, it sends a request to your app (which > lives inside and iframe).. this app has some a post parameter that you > need to retrieve and decode.. > > while i write the tests and code for the decoding method, i would like > to just grab the post parameters via a log of requests to the image.. You can easily access the request context through: self requestContext request > the next question will be.. > > inside my application, i will need to grab this post under certain > conditions.. how would i go about grabbing the post request inside my > app? This depends a bit on how and when this post comes in. Is it the first request that "starts" the application? Cheers Philippe _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
>> inside my application, i will need to grab this post under certain
>> conditions.. how would i go about grabbing the post request inside my >> app? > > This depends a bit on how and when this post comes in. Is it the first > request that "starts" the application? correct.. the idea will be.. the initial request.. the one that starts the application will have some variables sent over via POST.. if the handshake is made, and everything is cool, then the app will let itself know that it's good to go, and proceed... after that, everything is good, and there is no long a POST sent.. thanks! -- ---- peace, sergio photographer, journalist, visionary http://www.ThoseOptimizeGuys.com http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
On Mon, Sep 10, 2012 at 4:01 AM, sergio_101 <[hidden email]> wrote:
>>> inside my application, i will need to grab this post under certain >>> conditions.. how would i go about grabbing the post request inside my >>> app? >> >> This depends a bit on how and when this post comes in. Is it the first >> request that "starts" the application? > > correct.. the idea will be.. > > the initial request.. the one that starts the application will have > some variables sent over via POST.. > > if the handshake is made, and everything is cool, then the app will > let itself know that it's good to go, and proceed... Uh, handshake? Do you need to create some special kind of response after the post? Cheers Philippe _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
> Uh, handshake? Do you need to create some special kind of response
> after the post? sorry.. i phrased that incorrectly.. all i need to to is unwrap the request, and if it all checks out, save the state (to session, maybe).. -- ---- peace, sergio photographer, journalist, visionary http://www.ThoseOptimizeGuys.com http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |