youknowone / itunes-iap

Apple iTunes In-app purchase verification tool
http://itunes-iap.readthedocs.io
Other
136 stars 50 forks source link

Allows access iTunes Validation URL through proxy #23

Closed marinampires closed 8 years ago

marinampires commented 8 years ago

In my work environments the server has no internet access, so is necessary to access external urls with proxy.

youknowone commented 8 years ago

Thanks for a nice patch. I learn about proxies in requests due to your patch.

Here is a suggestion: If we should attach https:// internally, than how about just get the full URL from users including https://? Then the protocol is also retrieable like:

protocol = self.proxy_url.split('://')[0]
http_respones = requests.post(url, post_body, verify=verify_ssl, {protocol: self.proxy_url})
marinampires commented 8 years ago

@youknowone, I made the changes that you suggested. Could you take a look? 84c289e

youknowone commented 8 years ago

Looks good for me. Thanks!

youknowone commented 8 years ago

Released: https://pypi.python.org/pypi/itunes-iap/2.2.0

marinampires commented 8 years ago

Thanks ;)