From Controller, is there a way to send a POST request to specific domain with parameter?
What I wanna archive looks like this:
public ActionResult Index()
{
Redirect("https://www.anothersite.com", new { s = "abc" });
}
I wanna do this in server side instead of using ajax in client side:
$.ajax({
url: 'https://www.anothersite.com',
type: 'POST',
data: { s: 'abc' }
}).done(function (data) {
// logic...
})
Is it possible?