So, I was looking through some articles on creating REST API’s. And some of them suggest using all types of HTTP requests: like PUT DELETE POST GET. We would create for example index.php and write API this way: OK, granted – I don’t know much about web services (yet). But, wouldn’t it be easier to just accept JSON object through
Tag: rest
How do I make a request using HTTP basic authentication with PHP curl?
I’m building a REST web service client in PHP and at the moment I’m using curl to make requests to the service. How do I use curl to make authenticated (http basic) requests? Do I have to add the …