driesvints / vat-calculator

Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be.
MIT License
1.2k stars 88 forks source link

Fixing 404 errors with file get contents #118

Closed K2ouMais closed 3 years ago

K2ouMais commented 3 years ago

Hi,

I just used get_headers to get the status code of the api, because it was throwing an uncatchable 404 error when using file_get_contents and the vat number wasnt a valid one.

Now it should work without the need for the cURL extension aswell.

Thank you

PS: Seems something went wrong last time... New try...

driesvints commented 3 years ago

Hey @K2ouMais, seems like something went wrong with branching again. Can you make sure you pull in the latest version of 2.x, branch anew and do the changes again? If you're stuck and want me to do it instead feel free to say so 👍

K2ouMais commented 3 years ago

Sorry... Will have to take a closer look at it again... Will try later