How can I send a DELETE request from HTML?
<p>I'm making an HTML interface for a Cloudfront/S3-fronted bucket, and I want to be able to delete objects in it through that interface. I can write GET and POST requests fine to list and view objects in the bucket, but I've no idea how to write a delete request.</p>

<pre><code>private String buildURL(String endpoint) {
    String secret    = 'some_secret';
    Datetime dt      = Datetime.now();
    Long longTime    = dt.getTime();
    Long expiryLong  = (longTime / 1000) + 10;
    String url       = 'https://' + cf + endpoint +
                       '?Prefix=' + user_id;
    String expiry    = String.valueOf(expiryLong);
    String policy    = policy(url, expiry);
    String policyEnc = EncodingUtil.base64Encode(Blob.valueOf(policy));
    String rPolicy   = cfReplace(policyEnc);
    Blob mac         = Crypto.generateMac('HMACSHA1',
                                          Blob.valueOf(rPolicy),
                                          Blob.valueOf(secret));
    String signature = cfReplace(EncodingUtil.base64Encode(mac));

    return 'https://' + cf + endpoint +
           '?Prefix=' + user_id + '&amp;Policy=' + policyEnc +
           '&amp;Signature=' + signature + '&amp;Key-Pair-Id=' + keyPairId;
}
</code></pre>

<p>If that's the method I use to generate a URL to view an object, how can I change it to a delete request and attach that to an <code>&lt;a href...</code> tag?</p>