Curl results in a 403 when using a squid proxy
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to access an endpoint with curl and a squid HTTP proxy, however I'm running into 403 Forbidden errors when I try to do it.
curl -X GET 'https://secure-store.nike.com/ap/services/catalogService?action=loadProduct&productId=12365263&catalog=7&view=short&lang_locale=en_GB&rt=json&country=SG' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en-SG;q=0.9,en;q=0.8' -H 'Connection: keep-alive' -H 'Host: secure-store.nike.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36' --compressed --http1.1 -vx http://proxyIP:proxyPort
The response is as follows:
This exact curl command works to give the following response when I do not use a proxy.
"status" :"success","product" :"id" :"12365263","displayName" :"Air Jordan 1 High Zip Men's Shoe","productName1" :"Air Jordan 1 High Zip","productName2" :"Men's Shoe","colorNumber" :"002","type" :"nikeProduct","styleNumber" :"AR4833","productSlug" :"air-jordan-1-high-zip-shoe-RLzHD7","colorDescription" :"Black/Dark Smoke Grey/Gum Light Brown/University Red","prdGroupId" :"12480023","nikeType" :"FOOTWEAR","description" :"Air Jordan 1 High Zip Men's Shoe","inStock" :true,"dynamicAttributes" :"width" :"Regular","SalesChannel" :"Nike.com","sizeconversion" :"1162","publishdate" :"10/23/2018","sportPrimary" :"Lifestyle","hardlaunch" :"true","divisioncode" :"20","productType" :"1","simplecolor" :"2696","category" :"Shoes","modelType" :"1","brand" :"647","gender" :"Men","publishType" :"Flow","gender" :"Men","hexvalue" :null,"crossSells" :"false","catalog" :["2","4","7"]
I've tested the proxy by using it as a system proxy, and the browsers that I use are able to access the endpoint just fine.
What could be causing this?
curl http squid
New contributor
add a comment |Â
up vote
0
down vote
favorite
I'm trying to access an endpoint with curl and a squid HTTP proxy, however I'm running into 403 Forbidden errors when I try to do it.
curl -X GET 'https://secure-store.nike.com/ap/services/catalogService?action=loadProduct&productId=12365263&catalog=7&view=short&lang_locale=en_GB&rt=json&country=SG' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en-SG;q=0.9,en;q=0.8' -H 'Connection: keep-alive' -H 'Host: secure-store.nike.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36' --compressed --http1.1 -vx http://proxyIP:proxyPort
The response is as follows:
This exact curl command works to give the following response when I do not use a proxy.
"status" :"success","product" :"id" :"12365263","displayName" :"Air Jordan 1 High Zip Men's Shoe","productName1" :"Air Jordan 1 High Zip","productName2" :"Men's Shoe","colorNumber" :"002","type" :"nikeProduct","styleNumber" :"AR4833","productSlug" :"air-jordan-1-high-zip-shoe-RLzHD7","colorDescription" :"Black/Dark Smoke Grey/Gum Light Brown/University Red","prdGroupId" :"12480023","nikeType" :"FOOTWEAR","description" :"Air Jordan 1 High Zip Men's Shoe","inStock" :true,"dynamicAttributes" :"width" :"Regular","SalesChannel" :"Nike.com","sizeconversion" :"1162","publishdate" :"10/23/2018","sportPrimary" :"Lifestyle","hardlaunch" :"true","divisioncode" :"20","productType" :"1","simplecolor" :"2696","category" :"Shoes","modelType" :"1","brand" :"647","gender" :"Men","publishType" :"Flow","gender" :"Men","hexvalue" :null,"crossSells" :"false","catalog" :["2","4","7"]
I've tested the proxy by using it as a system proxy, and the browsers that I use are able to access the endpoint just fine.
What could be causing this?
curl http squid
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to access an endpoint with curl and a squid HTTP proxy, however I'm running into 403 Forbidden errors when I try to do it.
curl -X GET 'https://secure-store.nike.com/ap/services/catalogService?action=loadProduct&productId=12365263&catalog=7&view=short&lang_locale=en_GB&rt=json&country=SG' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en-SG;q=0.9,en;q=0.8' -H 'Connection: keep-alive' -H 'Host: secure-store.nike.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36' --compressed --http1.1 -vx http://proxyIP:proxyPort
The response is as follows:
This exact curl command works to give the following response when I do not use a proxy.
"status" :"success","product" :"id" :"12365263","displayName" :"Air Jordan 1 High Zip Men's Shoe","productName1" :"Air Jordan 1 High Zip","productName2" :"Men's Shoe","colorNumber" :"002","type" :"nikeProduct","styleNumber" :"AR4833","productSlug" :"air-jordan-1-high-zip-shoe-RLzHD7","colorDescription" :"Black/Dark Smoke Grey/Gum Light Brown/University Red","prdGroupId" :"12480023","nikeType" :"FOOTWEAR","description" :"Air Jordan 1 High Zip Men's Shoe","inStock" :true,"dynamicAttributes" :"width" :"Regular","SalesChannel" :"Nike.com","sizeconversion" :"1162","publishdate" :"10/23/2018","sportPrimary" :"Lifestyle","hardlaunch" :"true","divisioncode" :"20","productType" :"1","simplecolor" :"2696","category" :"Shoes","modelType" :"1","brand" :"647","gender" :"Men","publishType" :"Flow","gender" :"Men","hexvalue" :null,"crossSells" :"false","catalog" :["2","4","7"]
I've tested the proxy by using it as a system proxy, and the browsers that I use are able to access the endpoint just fine.
What could be causing this?
curl http squid
New contributor
I'm trying to access an endpoint with curl and a squid HTTP proxy, however I'm running into 403 Forbidden errors when I try to do it.
curl -X GET 'https://secure-store.nike.com/ap/services/catalogService?action=loadProduct&productId=12365263&catalog=7&view=short&lang_locale=en_GB&rt=json&country=SG' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en-SG;q=0.9,en;q=0.8' -H 'Connection: keep-alive' -H 'Host: secure-store.nike.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36' --compressed --http1.1 -vx http://proxyIP:proxyPort
The response is as follows:
This exact curl command works to give the following response when I do not use a proxy.
"status" :"success","product" :"id" :"12365263","displayName" :"Air Jordan 1 High Zip Men's Shoe","productName1" :"Air Jordan 1 High Zip","productName2" :"Men's Shoe","colorNumber" :"002","type" :"nikeProduct","styleNumber" :"AR4833","productSlug" :"air-jordan-1-high-zip-shoe-RLzHD7","colorDescription" :"Black/Dark Smoke Grey/Gum Light Brown/University Red","prdGroupId" :"12480023","nikeType" :"FOOTWEAR","description" :"Air Jordan 1 High Zip Men's Shoe","inStock" :true,"dynamicAttributes" :"width" :"Regular","SalesChannel" :"Nike.com","sizeconversion" :"1162","publishdate" :"10/23/2018","sportPrimary" :"Lifestyle","hardlaunch" :"true","divisioncode" :"20","productType" :"1","simplecolor" :"2696","category" :"Shoes","modelType" :"1","brand" :"647","gender" :"Men","publishType" :"Flow","gender" :"Men","hexvalue" :null,"crossSells" :"false","catalog" :["2","4","7"]
I've tested the proxy by using it as a system proxy, and the browsers that I use are able to access the endpoint just fine.
What could be causing this?
curl http squid
curl http squid
New contributor
New contributor
New contributor
asked 4 mins ago
brazen
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
brazen is a new contributor. Be nice, and check out our Code of Conduct.
brazen is a new contributor. Be nice, and check out our Code of Conduct.
brazen is a new contributor. Be nice, and check out our Code of Conduct.
brazen is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477660%2fcurl-results-in-a-403-when-using-a-squid-proxy%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password