250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- BigQuery
- youtube data
- API Gateway
- top_k
- gather_nd
- Counterfactual Explanations
- Airflow
- requests
- 유튜브 API
- GCP
- correlation
- XAI
- API
- chatGPT
- UDF
- grad-cam
- login crawling
- Retry
- hadoop
- GenericGBQException
- airflow subdag
- tensorflow text
- TensorFlow
- integrated gradient
- subdag
- session 유지
- flask
- 공분산
- spark udf
- 상관관계
Archives
- Today
- Total
데이터과학 삼학년
flask request 본문
반응형
flask의 request 모듈을 통해 접근 주소, url, path 정보 알아낼수 있다.
현재주소 - https://webisfree.com/contact/contact.html?who=naya
from flask import request
request.full_path // 쿼리스트링 포함 전체 path 정보
Ex) /contact/contact.html?who=naya
request.path // 쿼리를 제외한 path 정보
Ex) /contact/contact.html
request.url // 전체 url, host정보 및 path, 쿼리스트링 모두
Ex) https://webisfree.com/contact/contact.html?who=naya
request.base_url // host 및 path 정보
Ex) https://webisfree.com/contact/contact.html
request.url_root // host 및 path 정보
Ex) https://webisfree.com/contact/
request.host // host값
Ex) webisfree.com
request.host_url // host, protocol 값
Ex) https://webisfree.com
728x90
반응형
LIST
'Web' 카테고리의 다른 글
request.values 로 body를 분석( base64 encode --> decode) (0) | 2020.03.09 |
---|---|
로그인 기능 추가 --> 다 만든 web에 로그인만 입히기 (0) | 2020.03.06 |
flask http 요청 핸들러 (0) | 2020.03.05 |
SSO (Single Sign On) (0) | 2020.02.11 |
NGINX와 uWSGI (0) | 2020.02.10 |
Comments