Re: response and post in django

2012-03-12 Thread Bill Freeman
Yes. urlopen returns a response object. If you stick something in the data argument it does a POST, otherwise a GET. You are responsible for urlencodeing any query parameters in the url passed in. The response has things like a code attribute, and I forget whether you just call read() on it or

Re: response and post in django

2012-03-12 Thread hack
Oh, it looks like when you do a urlopen the return object is a response. On Monday, March 12, 2012 2:57:20 PM UTC-4, ke1g wrote: > > The straightforward thing is to use urllib2. The tricky thing is that > the thread that got the post from them in the first place will be > blocked waiting for th

Re: response and post in django

2012-03-12 Thread hack
Yes, I could not agree more on spotty quality. The paypal instructions are below. See # 3. I'm checking out urllib2 now. I don't see a way of obtaining a response. Co n s t r u c t i n g Yo u r P o s tb a c k Use these guidelines for constructing your postback to PayPal:. 1. Your postb

Re: response and post in django

2012-03-12 Thread Bill Freeman
urllib2 uses urllib and httplib under the hood. There all part of the standard python install. Yeah the docs may say it's in the body of the response, but is that your response to them, or the response to some request you have to further make to them. This sounds familiar. It may or may not hav

Re: response and post in django

2012-03-12 Thread hack
Yea, the docs say its in the body of the response. I'll try the lib you suggest. I was also taking a look at the httplib page as well. Thanks. On Monday, March 12, 2012 2:57:20 PM UTC-4, ke1g wrote: > > The straightforward thing is to use urllib2. The tricky thing is that > the thread that

Re: response and post in django

2012-03-12 Thread Bill Freeman
The straightforward thing is to use urllib2. The tricky thing is that the thread that got the post from them in the first place will be blocked waiting for their response. But are you understanding the API correctly? I would expect the "VERIFIED" to either be in their POST to your listener (to i

response and post in django

2012-03-12 Thread hack
I read the paypal ipn docs, and think I understand the procedure for processing payments. The only issue I have is that I am not 100% certain how to do this via django. Basically you setup a listener http://mysite.com/mylistener/, and when someone makes a payment paypal responds by notifying