<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 17, 2015 at 12:24 PM, John Duffy <span dir="ltr"><<a href="mailto:jb_duffy@btinternet.com" target="_blank">jb_duffy@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">My Foreign Exchange broker provides a HTTP REST API for automated trading, and uses the HTTP PATCH method for updating outstanding trade orders. I can't find a reference to the PATCH method in the httpc client documentation. Is this HTTP method supported?</blockquote></div><br>No, it is not.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Only the basic ones listed in RFC 7231,</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://tools.ietf.org/html/rfc7231#section-4">https://tools.ietf.org/html/rfc7231#section-4</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">are supported[0]. The registered method extensions listed in the HTTP method registry:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://www.iana.org/assignments/http-methods/http-methods.xhtml">http://www.iana.org/assignments/http-methods/http-methods.xhtml</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">seems to be without support. It should be fairly easy to add missing methods however.</div><div class="gmail_extra"><br></div><div class="gmail_extra">An alternative route would be to employ one of the many http client libraries out there. I'm partial to 'hackney' by Benoît Chesnau, but there are numerous others. On top of my head: lhttpc (Two branches: Fred Hebert, and one by Erlang Solutions Ltd.), gun (Loïc Hoguin), ibrowse (Chandrashekhar Mullaparthi), fusco (Diana Corbacho) and probably a couple I've forgotten. Different implementations enjoy different properties, so picking the one for your project may be something that takes a little time.<br><br clear="all"><div>I well known problem with the built-in httpc is that it has problems when experiencing high load. But I've used it successfully for a low-traffic site for years (only GET requests though).</div><div><br></div><div>[0] though I have my doubts about CONNECT.</div><div><br></div>-- <br><div class="gmail_signature">J.</div>
</div></div>