You are not logged in.

#1 2021-02-08 20:41:36

Sir_Ciurrox
Member
Registered: 2021-02-08
Posts: 2

Help with AUR-RPC

(sorry for the terrible English, it's not my first language)

Hi everyone, I have some trouble understanding how the aur web rpc thing works.
My problem is when I try to retrieve package information from the aur via rpc with cUrl,

for example

curl -X GET  -g -o temp3.json https://aur.archlinux.org/rpc/?v=5&type=info&by=name&arg[]=brave 

downloads the HTML page instead of the JSON. Instead if I try to do the same thing with the official repositories, ie

curl -X GET -g -o temp4.json https://archlinux.org/packages/core/x86_64/coreutils/json/ 

it works.

What I'm doing wrong? Is out there more extensive documentation than the wiki page? Thanks in advice

Offline

#2 2021-02-08 20:52:34

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Help with AUR-RPC

This is a quoting issue. Enclose the url in double quotes to prevent bash from interpreting special characters like the ampersand.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-02-08 21:23:46

Sir_Ciurrox
Member
Registered: 2021-02-08
Posts: 2

Re: Help with AUR-RPC

Now it works, Thank you!

Offline

Board footer

Powered by FluxBB