Python HTTP
import requests
website = 'https://localhost:8080'
req = reqeusts.get(website)
print req.status_code
print req.text // Request 로 응답받은 값을 텍스트로 출력.
import requests
website = 'https://localhost:8080'
data = {'param0':'data;,'param1':'data1'}
req = request.get(website,data=data)
import requests
website = 'https://localhost:8080'
data = {'param0':'data;,'param1':'data1'}
req = request.post(website,data=data)
import requests
improt json
website = 'https://localhost:8080'
data = {'out' : {'inner':'value'}}
req = request.post(website,data = json.dump(data))
누구나 파이썬 -3 (연산자, if, for) (0) | 2019.12.22 |
---|---|
누구나 파이썬 -2 (문법 , 자료형) (0) | 2019.12.13 |
누구나 파이썬 -1 (파이썬 설치하기 2.7.1 version) (0) | 2019.12.12 |
how to use File I/O in Python (0) | 2018.12.18 |
Python Simple socket Networking programming [ Echo Server / Echo Client ] (0) | 2018.11.20 |
Python 환경변수 지정법. (0) | 2018.11.20 |