Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 29, 2008 08:30 PM by xlar54
0 Points
6 Posts
Aug 29, 2008 08:30 PM|LINK
I would like to be able to send XML data to a controller, such as:
http://Site/Controller/Action?xml=<xml document...>
And access the data view the controller:
public ActionResult DoAction(string xml) { ... }
The problem appears to be the querystring, and I the client is using HTTP POST with UrlEncode. It fails unfortunately. Is there a better way to be doing this?
xlar54
0 Points
6 Posts
Posting XML to a controller
Aug 29, 2008 08:30 PM|LINK
I would like to be able to send XML data to a controller, such as:
http://Site/Controller/Action?xml=<xml document...>
And access the data view the controller:
public ActionResult DoAction(string xml)
{
...
}
The problem appears to be the querystring, and I the client is using HTTP POST with UrlEncode. It fails unfortunately. Is there a better way to be doing this?