How do I create binary patches?

Check out bsdiff and bspatch (website, manpage, paper, GitHub fork). To install this tool: Windows: Download and extract this package. You will also need a copy of bzip2.exe in PATH; download that from the “Binaries” link here. macOS: Install Homebrew and use it to install bsdiff. Linux: Use your package manager to install bsdiff.

PATCH Async requests with Windows.Web.Http.HttpClient class

I found how to do a “custom” PATCH request with the previous System.Net.Http.HttpClient class here, and then fiddled with until I made it work in the Windows.Web.Http.HttpClient class, like so: public async Task<HttpResponseMessage> PatchAsync(HttpClient client, Uri requestUri, IHttpContent iContent) { var method = new HttpMethod(“PATCH”); var request = new HttpRequestMessage(method, requestUri) { Content = iContent … Read more

How to use PATCH verb with curl

This is the format you should use: curl –request PATCH https://api.viafoura.com/v2/dev.viafoura.com/pages/7000000043515?status=closed That API seems to want the status parameter as a query parameter on the url, not part of the PATCH body. At this point the server is going to return a 401 error: “You must be logged in to modify page settings.” Assumedly you … Read more