get html code using POSTMAN but not get using CURL and java

时间:2019-04-08 13:32:44

标签: http curl postman

I am using postman to get HTML source code:

https://www.homedepot.com.mx/SearchDisplay?sType=SimpleSearch&resultCatEntryType=2&showResultsPage=true&searchSource=Q&beginIndex=0&pageSize=20&searchTerm=pantalla&p=1

the response is successful

When I am using, the response is successful. I am also using java and it is successful.

curl -X GET 'https://www.homedepot.com.mx/SearchDisplay?sType=SimpleSearch&resultCatEntryType=2&showResultsPage=true&searchSource=Q&beginIndex=0&pageSize=20&searchTerm=pantalla&p=1' -H 'cache-control: no-cache' -H 'postman-token: e69ea00a-c2fe-a8b1-719d-dbdc1e7d6ebf'

The difference is that the Postman print HTML code but the curl not.

0 个答案:

没有答案