Download, install and run Fiddler.
Open Tools > Options....
In Performance tab uncheck Parse WebSocket Messages and set Stream and forget bodies over to 0 MB.
In HTTPS tab check Decrypt HTTPS traffic and install certificates when prompted. From dropdown menu select ...from non-browsers only. Click on Skip decryption (it will now say Perform decryption) and in the field below enter api1.origin.com
(if that doesn't work you can always go back to those options and change it to *.origin.com
).
Accept changes with OK. Click on FiddlerScript tab, and from dropdown menu select OnBeforeRequest. Add following code under the selected line and click on Save Script.
if (oSession.uriContains("/ecommerce2/downloadURL") && oSession.uriContains("&https=true")) {
oSession["ui-backcolor"] = "lime";
oSession.fullUrl = oSession.fullUrl.Replace("&https=true", "&https=false");
}
Optional: Open Rules and check Hide CONNECTs.
Restart Fiddler, run Origin and start downloading/updating the game. This is what you should see:
That entry with lime background is where Fiddler edited URL. Following entries are proof Origin downloads from HTTP server.
If you decide you don't want to use it anymore (or Origin adds some better, official solution), open Tools > Options... go to HTTPS tab, uncheck Decrypt HTTPS traffic and from Actions menu select Remove Interception Certificates. And accept when prompted. Now you can uninstall Fiddler.
I don't think so. Last time I tried to capture EA app traffic - Fiddler didn't show all traffic, and mitmproxy showed a lot of handshake failures. So I think EA app pins some certificates. That means unless EA makes EA app download through HTTP - you won't be able to intercept the download link (unless you modify the EA app yourself). So if you want that for caching - your only option is to ask EA to implement it.
EA app uses GraphQL for their API. I grabbed the necessary request from some earlier version of the app before they improved the security. But Origin API still works, and that's what I use in my "Origin Helper". If you just want to generate a download link - search for
"origin helper" anadius
and you should be able to find my website.