-
스크래핑 POST 요청php 2023. 8. 10. 16:33
1. request 시에 사용된 Payload를 확인한다.
- form data / json , GraphQL 등의 형태를 가진 데이터가 필요할 수 있다.
2. Json 데이터를 가지고 request 하기
- payload를 parsed로 만들어서 POSTMAN의 BODY에 넣어준다
- json 데이터를 넣어줄 때는 위와 같이 raw 에 JSON 타입으로 변경해준다.
'php' 카테고리의 다른 글
스크래퍼 제작하기 (0) 2023.08.17 windows에서 php에 curl 확장 시 주의 (0) 2023.08.10 Xdebug를 활용해서 자동으로 버그를 잡아보자 (0) 2023.08.09 codeigniter 프로젝트 생성 (0) 2023.08.09 php의 Composer 활용하기 (0) 2023.08.09