這是一個基本的HTTPS查詢XML文件DuckDuckGo:添加網址參數的DuckDuckGo searchplugin爲Firefox
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Duck Duck Go (SSL)</os:ShortName>
<os:Description>Search Duck Duck Go (SSL)</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,[*redacted image code*]</os:Image>
<os:Url type="text/html" method="GET" template="https://duckduckgo.com/?q={searchTerms}">
</os:Url>
</SearchPlugin>
我想有一定的參數(即,KB = -1公斤= P( link))附加到通過Firefox的搜索框執行的搜索。我嘗試使用「<Param name="paramName1" value="paramValue1"/>
」添加它,但這不起作用。
此外,雖然添加kg = p將使所有後續請求使用POST(而不是GET),但我怎樣才能使最初的一個POST請求。我試着將method =「GET」更改爲「POST」,但這不起作用。