I use a query to generate the license: curl -u "user:password" ""

and I am getting error code 500: "Error! hwid must be in base64 format without spaces..."


Using standard Base64 in URL requires encoding of '+', '/' and '=' characters into special percent-encoded hexadecimal sequences, i.e '+' becomes '%2B', '/' becomes '%2F' and '=' becomes '%3D'.


After you change a+rQ3MYV/9JLV=8  to  a%2BrQ3MYV%2F9JLV%3D8  it should work.

Or using curl and url encoding:

curl -X POST -u "user:password" --data-urlencode hwid=a+rQ3MYV/9JLV=8 --data-urlencode note=RESTlicense