如何格式化curl--data参数以匹配jQueryAjax请求?

如何格式化curl--data参数以匹配jQueryAjax请求?,jquery,ajax,curl,web-scraping,Jquery,Ajax,Curl,Web Scraping,网站具有以下用于检索信息的功能: function show_best_matches(sequence_id, version_id) { jQuery.ajax({ type: "GET", url: 'https://unite.ut.ee/show_best_matches.php', data:{ sequence_id: sequence_id, version_id: versi

网站具有以下用于检索信息的功能:

function show_best_matches(sequence_id, version_id) {
    jQuery.ajax({
        type: "GET",
        url: 'https://unite.ut.ee/show_best_matches.php',
        data:{
            sequence_id: sequence_id,
            version_id: version_id,
        },
        success:function(html) {
            document.getElementById("best_matches").innerHTML = html;
        }
    });
}
我想使用curl来检索这些数据。我有所有正确的输入(序列ID和版本ID),但我认为我没有正确地将--data参数格式化为curl。以下是我尝试过的(基于其他stackoverflow搜索):

谢谢你的帮助。如果curl不是这里使用的合适工具,我愿意接受建议。

答案如下:

https://unite.ut.ee/show_best_matches.php?sequence_id=56719&version_id=7

事实证明,在GET中不使用curl的--data部分,只需将参数添加到URL的末尾。第一个参数前面有一个?,其余的参数用&分隔

经过更多的搜索后,我尝试了
{“sequence\u id:“56719”,“version\u id:“7”}
,但它也不起作用。如果您在Linux上,我建议将URL加引号。否则,终端将把它解释为两个独立的命令,并将尝试在后台运行第一个命令:“和”version_id=7”
https://unite.ut.ee/show_best_matches.php?sequence_id=56719&version_id=7