Http request - Forum

Forum Navigation
You need to log in to create posts and topics.

Http request

Hi,

How is possible to make a http request to a url(post or get) and get result there is any command for this?

For example http://requestdomain.com/index.php&=&command=givecommand&command2=command2

there any action in actionscript which can do this or other way?

What you want to achive exactly?
You can do it in many ways. Best one using a Form object with GET method instead of POST (there is an included sample app).
You can also use FileToVar and OnLoadSuccess using the complete URL as the file name. The content requested will be stored in a variable.

I try to find a solution to sent sms message inside my application.I found a sms provider and using their api can make a http request using the url below:

https://api.smsglobal.com/http-api.php?action=sendsms&user=(USERNAME)&password=(PASSWORD)&from=(CUSTOMWORD)&to=(NUMBER)&text=(MESSAGE)

If everything goes well returns a string with status like : sent=ok:messageid=85985945849353894

My idea is to call this url and using string action to check return string and get ok and message id,so can have a sms status report.

I will try the method with FileToVar and OnLoadSuccess seems fine.

I will let you know.

FileToVar works perfect!

Thank you again for your quick support!!!

luishp has reacted to this post.
luishp