Bug 426810 - Extend libalkimia to support fetching online quotes by POST request
Summary: Extend libalkimia to support fetching online quotes by POST request
Status: RESOLVED FIXED
Alias: None
Product: libalkimia
Classification: Frameworks and Libraries
Component: General (show other bugs)
Version: 8.0.3
Platform: Other All
: NOR wishlist
Target Milestone: 8.2
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 12:52 UTC by Ralf Habacker
Modified: 2023-01-11 09:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 8.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 5 Ralf Habacker 2023-01-10 23:53:47 UTC
(In reply to Ralf Habacker from comment #4)
> Complete post request support

POST requests are processed by adding 'method=post' to the request url.