質問

I have an XML file I want to download via Shell, the URL is

http://www.gametracker.com/datafeeds/?server_info&GAMESERVERID=2814889

Anyway, I have an issue that whenever I try to download it it ignores the variable or something and instead gives me this file:

<?xml version="1.0" encoding="UTF-8"?>
<data>
    <result>ERROR</result>
    <resultstring>Invalid%20request</resultstring>
</data>

What can I do to download the file properly?

役に立ちましたか?

解決

Here is the command to download the xml into a file. Hopefully you missed the quotes around the url and hence it broke around the & character.

curl "http://www.gametracker.com/datafeeds/?server_info&GAMESERVERID=2814889" -o output.xml

If you want to use wget:

wget "http://www.gametracker.com/datafeeds/?server_info&GAMESERVERID=2814889" -O output.xml
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top