HTTP request in Ubuntu

I need to call an HTTP request in ubuntu, how to do this? I can't seem to find an answer on how to do this?

How to launch the following url without calling a browser like lynx?

http://www.smsggglobal.com/http-api.php?action=sendsms&user=asda&password=123123&&from=123123&to=1232&text=adsdad 
+7
source share
2 answers

at the command prompt do the following:

 curl http://www.smsggglobal.com/http-api.php?action=sendsms&user=asda&password=123123&&from=123123&to=1232&text=adsdad 

The curl command executes an HTTP request for the given URL and parameters.

if you need to specify another HTTP method, use curl -X <TYPE> <URL> , for example:

 curl -X POST http://www.smsggglobal.com/http-api.php?action=sendsms&user=asda&password=123123&&from=123123&to=1232&text=adsdad 

curl documentation: http://curl.haxx.se/docs/manpage.html

+14
source

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 
+3
source

All Articles