| Server IP : 118.27.122.248 / Your IP : 216.73.216.15 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3
�w2_x# � @ s� d dl Z d dlmZ d dlZd dlZd dlZd dlZd dlZd dlZej Z d dl
mZ ejj
e�Zejjed�Zejjed�Zejjed�ZdZdZd Zd
Zde d Zd
ZdZejZG dd� d�ZG dd� de�ZG dd� dej�ZG dd� dej �Z!G dd� de �Z"G dd� de �Z#G dd� de �Z$G dd� de �Z%G dd� de%�Z&G d d!� d!�Z'G d"d#� d#e �Z(G d$d%� d%e �Z)G d&d'� d'e �Z*G d(d)� d)e �Z+G d*d+� d+e �Z,G d,d-� d-e �Z-G d.d/� d/e �Z.G d0d1� d1e �Z/e0d2k�r�ej1d3d4� dS )5� N)�client)�supportzkeycert.pemzkeycert2.pemzselfsigned_pythontestdotnet.pemz{HTTP/1.1 200 OK
Transfer-Encoding: chunked
a
hello worl
3
d!
8
and now
22
for something completely different
s7 hello world! and now for something completely differentz;foo=barz0
�0z
zX-Dummy: foo
X-Dumm2: bar
c @ sH e Zd Zejddfdd�Zdd� Zddd�Zdd � Zd
d� Z dd
� Z
dS )�
FakeSocketNc C sB t |t�r|jd�}|| _|| _d| _d| _d| _|| _|| _ d S )N�ascii� r F)
�
isinstance�str�encode�text� fileclass�data�
sendall_calls�file_closed�host�port)�selfr r r r � r �6/opt/alt/python36/lib64/python3.6/test/test_httplib.py�__init__- s
zFakeSocket.__init__c C s | j d7 _ | j|7 _d S )N� )r r
)r r
r r r �sendall8 s zFakeSocket.sendallc C s6 |dkr|dkrt j� �| j| j�| _| j| j_| jS )N�r�rb)r ZUnimplementedFileModer r �file�
file_close�close)r �mode�bufsizer r r �makefile<