import requests
import json
from config import LOG

# r = requests.get("http://pyx-2.pretendyoure.xyz/zy/game.jsp")
# cookies = r.cookies
# print(cookies)
#
#
#
#
# r = requests.post("http://pyx-2.pretendyoure.xyz/zy/AjaxServlet",
#                  cookies=cookies,
#                  headers={"Connection":"keep-alive"},
#                  data={"o":"r","s":"129450789","n":"lapinstance"})
#
# print(r.text)
#
# r = requests.post("https://pyx-2.pretendyoure.xyz/zy/AjaxServlet",
#                   cookies=cookies,
#                   headers={"Connection":"keep-alive"},
#                   data={"o":"jg","s":"129450789", "gid":"29", "pw":"lapinstance"})
# print(r.text)
#
#
# for i in range(1000):
#     r = requests.post("http://pyx-2.pretendyoure.xyz/zy/LongPollServlet",
#                       headers={"Connection":"keep-alive"},
#                       cookies=cookies
#                       )
#     print(r.text)
#
# r = requests.post("https://pyx-2.pretendyoure.xyz/zy/AjaxServlet",
#                   cookies=cookies,
#                   data={"o":"GC","s":"129450789", "gid":"29", "m":"i carrot wait", "me":"false"})
#
#
# print(r.text)

