Curl results in a 403 when using a squid proxy

The name of the pictureThe name of the pictureThe name of the pictureClash 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:
Response
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?









share







New contributor




brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    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:
    Response
    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?









    share







    New contributor




    brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      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:
      Response
      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?









      share







      New contributor




      brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      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:
      Response
      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





      share







      New contributor




      brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 mins ago









      brazen

      1




      1




      New contributor




      brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      brazen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          brazen is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          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



































          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.









           

          draft saved


          draft discarded


















          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.













           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?