Skip to content

Tag: http

Merge request not working

I am trying to replace the ‘pic’ value, which is set as an array when it comes in, with an image file name but the merge does not seem to be working. I am not getting any errors in the log with the below code. I guess I am not allowed to embed pictures yet so there is links below.

Double HTTP Authorization

I am currently working on a project that I’ve decided to go with basic HTTP authorization at the admin area for simplicity, however the company I’m working for already has HTTP authorization on their staging server and I was wondering if it is possible to have double HTTP authorization? Looking at…

PHP multipart form data PUT request?

I’m writing a RESTful API. I’m having trouble with uploading images using the different verbs. Consider: I have an object which can be created/modified/deleted/viewed via a post/put/delete/get request to a URL. The request is multi part form when there is a file to upload, or application/xml when …

RESTful API methods; HEAD & OPTIONS

I’m writing a RESTful API module for an application in PHP, and I’m a bit mixed on the verbs HEAD and OPTIONS. OPTIONS  Used to retrieve the available HTTP verbs for a given resource? HEAD Used to determine whether a given resource is available? If someone could clarify* these verbs, that would be…