Hacked By AnonymousFox

Current Path : /opt/alt/python27/lib/python2.7/site-packages/raven/transport/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/raven/transport/http.pyc

�
��Yc@@s�dZddlmZddlmZmZddlmZddlm	Z	m
Z
ddlmZddl
mZdefd	��YZd
S(s�
raven.transport.http
~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
i(tabsolute_import(tstring_typesturllib2(tdefaults(tAPIErrortRateLimited(t	Transport(turlopent
HTTPTransportcB@s5eZddgZejeejd�Zd�ZRS(s	sync+https
sync+httpscC@sat|t�rt|�}nt|t�rBtt|��}n||_||_||_dS(N(t
isinstanceRtinttboolttimeoutt
verify_ssltca_certs(tselfRR
R((sE/opt/alt/python27/lib/python2.7/site-packages/raven/transport/http.pyt__init__s		c
C@s�tj|d|�}y4td|d|d|jd|jd|j�}Wn�tjk
r�}|jjd�}|j	�}|dkr�yt
|jjd	��}	Wnttfk
r�d
}	nXt
||	��q�|r�t||��q��nX|S(sH
        Sends a request to a remote webserver using HTTP POST.
        theadersturltdataRR
Rsx-sentry-errori�sretry-afteri(RtRequestRRR
Rt	HTTPErrorRtgettgetcodeR
t
ValueErrort	TypeErrorRR(
RRRRtreqtresponsetexctmsgtcodetretry_after((sE/opt/alt/python27/lib/python2.7/site-packages/raven/transport/http.pytsends*		
(	t__name__t
__module__tschemeRtTIMEOUTtTruet	CA_BUNDLERR (((sE/opt/alt/python27/lib/python2.7/site-packages/raven/transport/http.pyRs	
N(t__doc__t
__future__Rtraven.utils.compatRRt
raven.confRtraven.exceptionsRRtraven.transport.baseRtraven.utils.httpRR(((sE/opt/alt/python27/lib/python2.7/site-packages/raven/transport/http.pyt<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox