
    %$}g$                         d Z ddlZddlZ ej        e          Z ej                     ej                            dddg dd          Z	 ej
        dd	e	d
          Zh dZdedefdZdS )z-
Functions devoted to requests over the WWW.
    N   F)i  i  i  i  i  i  i  i  i	  i
  i  i  i  i  i  i  iV     )totalredirectraise_on_redirectstatus_forcelistbackoff_factor	CERT_NONEd   
   )	cert_reqs	num_poolsretriestimeout>
   ,  -  .  /  0  1  2  3  4     urlreturnc                 p   	 t                               d|           }|j        t          v rGt                              d|                                |j                   |                                S n3# t          $ r&}t                              d| |           Y d}~nd}~ww xY wt          d|            )zTest final URL to handle redirects
    Args:
        url: url to check

    Returns:
        The final URL seen.

    Raises:
        Nothing.
    HEADzresult found: %s %szunknown error: %s %sNzcannot reach URL: $)
	HTTP_POOLrequeststatusACCEPTABLE_CODESLOGGERdebuggeturl	Exception	exception
ValueError)r   rheaderrs      O/var/www/py-google-trends/myenv/lib/python3.11/site-packages/courlan/network.pyredirection_testr,   /   s    "!!&#..
 <+++LL.MMM<<>>! ,	  ; ; ;/c::::::::; 0300
1
11s   A3 3
B#=BB#)__doc__loggingurllib3	getLogger__name__r#   disable_warningsutilRetryRETRY_STRATEGYPoolManagerr   r"   strr,        r+   <module>r:      s       
	8	$	$      ##
  & / $  2  GS."  	 FEE 2# 2# 2 2 2 2 2 2r9   