ubuntu で HTTP リクエストを呼び出す必要があります。どうすればよいですか? それを行う方法についての答えが見つからないようです。
lynx のようなブラウザを呼び出さずに次の URL を実行するにはどうすればよいですか?
http://www.smsggglobal.com/http-api.php?action=sendsms&user=asda&password=123123&&from=123123&to=1232&text=adsdad
コマンド プロンプトで、次のコマンドを実行します。
curl http://www.smsggglobal.com/http-api.php?action=sendsms&user=asda&password=123123&&from=123123&to=1232&text=adsdad
curl コマンドは、指定された URL とパラメーターに対して http 要求を実行します。
次のように、別の HTTP メソッドを指定する必要がある場合use curl -X <TYPE> <URL>
:
curl -X POST http://www.smsggglobal.com/http-api.php?action=sendsms&user=asda&password=123123&&from=123123&to=1232&text=adsdad
カールのドキュメント: http://curl.haxx.se/docs/manpage.html
to display the results:
curl http://www.smsggglobal.com/http-api.php?action=sendsms&user=asda&password=123123&&from=123123&to=1232&text=adsdad
or
to save the results as a file
wget http://www.smsggglobal.com/http-api.php?action=sendsms&user=asda&password=123123&&from=123123&to=1232&text=adsdad