Hi,
Here are a few of the things I need to know:
What do you put for the URLRequest? It's confusing me a bit since Asp.Net MVC is methods and not pages
How do you assign parameters for the POST?
How to you execute the URLRequest to complete the Http Post?
Any information on how to do a Post from Flash to an Asp.Net MVC Application would be helpful.
Thanks,
Matt
Edit: I'm asking this because I'm getting an IO Error and a Stream Error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.mysite.com/MyController/MyMethod at Main/postToMySite()
And people have told me that this usually means the url does not exist. I've tried typing: http://www.mysite.com/MyController/MyMethod into the address bar and it says the resource cannot be found, but I know for a fact that it does exist because it gets called perfectly fine from my javascript (I've tested it).
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult MyMethod(FormCollection formValues)
{
return this.Json("Completed");
}
NOTE!!!! I Just tested it on a different url, one that didn't have the [AcceptVerbs(HttpVerbs.Post)]
and it didn't give me any errors! Any idea of why this is? Will doing a post to a method without the [AcceptVerbs(HttpVerbs.Post)]
still work?