|Summary:||Extend libalkimia to support fetching online quotes by POST request|
|Product:||[Frameworks and Libraries] libalkimia||Reporter:||Ralf Habacker <ralf.habacker>|
|Component:||General||Assignee:||KMyMoney Devel Mailing List <kmymoney-devel>|
|Latest Commit:||https://commits.kde.org/alkimia/aecc1e2034edb616625a3247539463e69cef2049||Version Fixed In:||8.2.0|
Description Ralf Habacker 2020-09-21 12:52:50 UTC
from https://invent.kde.org/office/kmymoney/-/merge_requests/29#note_100961 There is a universal source that tracks virtually every investment product out there: https://www.investing.com. Except it is not compatible with LibAlkimia, which expects the websites to show a specific investment's page using a URL GET, while investing.com supports POST only. libalkimia should be extended to support also POST requests. ADDITIONAL INFORMATIONS In order not to be forced to change the format of the quote file, the request type should be added to the url.
Comment 1 Ralf Habacker 2020-11-20 19:29:10 UTC
For such support a test service has been added to the kmymoney web site. Post requests can be checked by using the following url: curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "a=ORCL" https://kmymoney.org/onlinequotestest.php
Comment 2 Ralf Habacker 2020-11-23 08:05:44 UTC
On adding an online source for investing.com with bug 429440 it turned out, that there is no post request required to fetch associated sources.
Comment 3 Ralf Habacker 2021-03-09 09:33:02 UTC
(In reply to Ralf Habacker from comment #2) > On adding an online source for investing.com with bug 429440 it turned out, > that there is no post request required to fetch associated sources. To be prepared for future needs a related support has been added to the alkimia code base.
Comment 4 Ralf Habacker 2021-07-07 06:37:43 UTC
Git commit 11eb556b2f1cb2589d84f4e345ecf12b0b5d919d by Ralf Habacker. Committed on 07/07/2021 at 06:36. Pushed by habacker into branch 'master'. Complete post request support M +5 -0 src/alkwebpage.cpp https://invent.kde.org/office/alkimia/commit/11eb556b2f1cb2589d84f4e345ecf12b0b5d919d