Reputation: 192
I am using DigitalOcean droplet Ubuntu 22.10 And I am gettin 403 when I am using curl on the server but on my local machine its works
I am trying to curl to
with the right headers When I am doing this on my local machine from terminal its works perfect (with vpn and without) On the droplet console I am trying to do the same curl and its getting 403 I trying from 3 different droplets
curl: (6) Could not resolve host: curl
<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>
You don't have permission to access "http://www.zara.com/tr/en/basic-heavy-weight-t-shirt-p00526411.html?" on this server.<P>
Reference #18.d04f4317.1668510459.19433a7
</BODY>
</HTML>
repeated 'curl'
curl 'https://www.zara.com/us/' \
-H 'authority: www.zara.com' \
-H 'accept: /' \
-H 'accept-language: en-US,en;q=0.9,he;q=0.8' \
-H 'cache-control: no-cache' \
-H 'cid: regional' \
-H 'pragma: no-cache' \
-H 'referer: https://www.zara.com/tr/en/basic-heavy-weight-t-shirt-p00526411.html?v1=224865182&v2=2113240' \
-H 'sec-ch-ua: "Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36' \
--compressed
Hope you can help :)
Upvotes: 0
Views: 270