Your IP : 18.216.253.84


Current Path : /opt/hc_python/share/doc/pycurl/examples/__pycache__/
Upload File :
Current File : //opt/hc_python/share/doc/pycurl/examples/__pycache__/sfquery.cpython-38.pyc

U

hf�	�@sfddlZddlZddlZGdd�dej�Zedk�rbeej�dkrHdZn
ejdZze���	d�Z
e
\ZZZ
WnDeej�dkr�ed	ejd�e�ejd
ZejdZ
YnXed�Ze�d�e�ee
�e�d
��rej�dee����e�d�n`e�de��r@e�e�ej�e���e��e�d�n"ej�dee����e�d�dS)�Nc@s$eZdZdd�Zdd�Zdd�ZdS)�SourceForgeUserSessioncCs"|�dd|fd|fdddf�dS)zEstablish a login session.zaccount/login.phpZform_loginnameZform_pw)Z	return_to�)Zstay_in_ssl�1)�loginzLogin With SSLN)�post)�self�name�password�r
�Z/opt/hc_python/lib64/python3.8/site-packages/../../../share/doc/pycurl/examples/sfquery.pyrs�zSourceForgeUserSession.logincCs|�d�dS)zLog out of SourceForge.zaccount/logout.phpN��get)rr
r
r�logoutszSourceForgeUserSession.logoutcCs|�d|�dS)Nz!export/xml_export.php?group_id=%sr)rZnumidr
r
r�	fetch_xmlsz SourceForgeUserSession.fetch_xmlN)�__name__�
__module__�__qualname__rrrr
r
r
rrsr�__main__�Z28236zsourceforge.net�z,Usage: %s <project id> <username> <password>��zhttps://sourceforge.net/zInvalid Password or User Namez'Login/password not accepted (%d bytes)
zPersonal Page For: zUnexpected page (%d bytes)
)�sys�netrcZcurlZCurlrr�len�argvZ
project_id�authenticators�authr�accountr	�print�
SystemExit�session�
set_verbosityrZanswered�stderr�write�body�exitr�stdoutrr
r
r
r�<module>s8






?>