I'm using Mandrill to send email and I need to track the emails' statuses. Mandrill use Webhooks to send a POST request to a specific url to notify when an event happens.

I'm using Services to implement the webservice to get that information. However, before sending a POST request, Mandrill use HEAD request to check if that url works.

I tried using a REST client name Postman (Chrome extension) to test http requests and the server always return 404 for HEAD. But Mandrill requires the response code 200 to work properly.

Does Services module support HEAD requests? If not, please help me to make it work. Thank you.

Files: 
CommentFileSizeAuthor
#5 services-HEAD-1993776.patch954 bytesygerasimov
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch services-HEAD-1993776.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#3 services.restful_head_1993776_d7__03.patch642 bytesrfay
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch services.restful_head_1993776_d7__03.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#2 services.restful_head_1993776_02.patch705 bytesrfay
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch services.restful_head_1993776_02.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Category:support» feature

Yes, I'm facing this also.

@trickyken, I'm working on mandrill too (but to receive emails). Is your code available anywhere?

StatusFileSize
new705 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch services.restful_head_1993776_02.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Here's one way to provide a trivial HEAD. This just treats HEAD on the index as if it were GET. (this is for 6.x-3.x, but I imagine it's the same)

Status:Active» Needs review
StatusFileSize
new642 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch services.restful_head_1993776_d7__03.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

I haven't tested it, but this patch looks to me like what's required for D7

Status:Needs review» Needs work

The last submitted patch, services.restful_head_1993776_d7__03.patch, failed testing.

Status:Needs work» Needs review
StatusFileSize
new954 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch services-HEAD-1993776.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Please test attached patch.

Status:Needs review» Needs work

The last submitted patch, services-HEAD-1993776.patch, failed testing.

Status:Needs work» Needs review

#5: services-HEAD-1993776.patch queued for re-testing.

Status:Needs review» Needs work

The last submitted patch, services-HEAD-1993776.patch, failed testing.

Status:Needs work» Fixed

Test bot does something wrong. I have committed HEAD method patch. Please test using dev version.

Version:7.x-3.3» 6.x-3.x-dev
Status:Fixed» Needs work

The reason the patch didn't apply was that the version was set to 7.x-3.3 instead of 7.x-3.x-dev.

Would you mind putting this into 6.x-3.x-dev as well?

Thanks!

Status:Needs work» Patch (to be ported)

6.x branch is no more supported (there are huge debates in #2014573 about it). We need maintainer for 6.x branch

Yeah... I understand :-) Just had hopes, as my deployment is 6.x.

Version:6.x-3.x-dev» 7.x-3.3

Status:Patch (to be ported)» Needs review

#5: services-HEAD-1993776.patch queued for re-testing.

Status:Needs review» Needs work

The last submitted patch, services-HEAD-1993776.patch, failed testing.

Version:7.x-3.3» 7.x-3.x-dev

Status:Needs work» Needs review

#5: services-HEAD-1993776.patch queued for re-testing.

Status:Needs review» Patch (to be ported)

@trickyken patch #5 has been committed to 7.x branch. Please keep this issue as needs port status.

Status:Patch (to be ported)» Closed (fixed)

This is fixed there is no d6.