Depends on what you want to query?
SAM does at least two (probably there are more options I just forgot about) things on Port 1221, so you will need to differentiate the URL.
/event is for PAL event hooks
/req is for requests
This is how the URL format looks in the code.request.php:
Code:
"GET /req/?songID=$songID&host=" . urlencode($host) . " HTTP\1.0\r\n\r\n
So the /req/ endpoint expects 2 parameters: songID and host
songID should be an integer and host is either an IP or a hostname in URLencoded foprmat.
Your URL should look like this:
http://MYIP:1221/req/?songID=10189&host ... stname.com