ShoppyGG / shoppy-php

PHP library for the Shoppy API. https://shoppy.gg
MIT License
18 stars 2 forks source link

CURLOPT_FOLLOWLOCATION needed to support redirections from shoppy endpoint #1

Open uniquadev opened 2 years ago

uniquadev commented 2 years ago

I noticed that shoppy has a cloudflare layer on its api endpoint, and this made the library not work since the CURLOPT_FOLLOWLOCATION flag is not set to true in CurlClient.php. Also, since the cloudflare layer I had to download the curl certificate bundle in order to support ssl.

cacert.pem installation on wamp

Code_WDV12NIOyi Code_Kp3nEI6gOz

finndev commented 2 years ago

The API endpoint does not use any security/browser integration checks. I have tested the example code and it works just fine (creating a product). Maybe you are using a very very bad AS that we have previously blocked?

uniquadev commented 2 years ago

The API endpoint does not use any security/browser integration checks. I have tested the example code and it works just fine (creating a product). Maybe you are using a very very bad AS that we have previously blocked?

uhm what do you mean for "AS"... I was quite sure it was depending for something on my side since it was working fine until last week :/

finndev commented 2 years ago

Could you provide the AS from your IP address? You can find it here: https://ipinfo.io/

uniquadev commented 2 years ago

hostname: "net-93-146-113-162.cust.vodafonedsl.it" city: "Rome" region: "Latium" country: "IT" loc: "41.8919,12.5113" org: "AS30722 Vodafone Italia S.p.A." asn: "AS30722" name: "Vodafone Italia S.p.A." domain: "vodafone.it" route: "93.146.112.0/20" type: "isp"