본문 바로가기

Daily Develope

검색하기
Daily Develope
프로필사진 noggame

  • 분류 전체보기 (109)
    • Develope (53)
      • Python (31)
      • Web (18)
      • ETC (4)
    • AI (16)
    • DB (6)
    • MicroService (7)
      • Docker (6)
      • Kubernetes (1)
    • OS (15)
      • Linux (10)
      • Windows (1)
      • Mac (4)
    • Git (7)
    • Algorithm (1)
    • Favorite (1)
      • 책갈피 (1)
      • Music (0)
Guestbook
Notice
  • migration 중입니다...
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • Flask
  • file
  • CUDA
  • numpy
  • Converting
  • docker
  • TORCH
  • GitLab
  • pytorch
  • git
  • evaluation
  • Python
  • format
  • DB
  • PostgreSQL
  • enV
  • Linux
  • Database
  • AI
  • Windows
  • list
  • pandas
  • Laravel
  • Paper
  • Package
  • KAKAO
  • judge
  • LLM
  • Mac
  • Container
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Requests (1)

Daily Develope

[Request] Content-Type의 데이터별 http 요청(requests) 코드 예제

application/json O Curl $ curl -x POST \ -h 'Content-Type: application/json' \ -h 'x-client-key: my-sample-key' ... \ -d '{"data1":"value1","data2":{"data21":"value21"},"data3":["value31","value32"]}' \ https://mydomain.com/some-api/sample O Python import requests _url = "https://mydomain.com/some-api/sample" _headers = { "Content-Type": "application/json", "x-client-key": "my-sample-key", ... }..

Develope/Web 2022. 11. 7. 19:52
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바