April 13, 2021

WeAnswer

The complete guide to the beginners as well as to the experienced Web Developers

php curl bad request but from browser work fine api

When you API call from the browser or Any Rest Client then it’s work fine but when API call from curl then it gives bad request. you need change your PHP curl request as per below code.