Hello,

I have to post data to MVC controller's action using angular http.post 
method.

Below is the implementation in MVC. I have to replicate the same in angular 
js.

    return RedirectToAction("Authorize",
                    new RouteValueDictionary(new Dictionary<string, 
object>()
                            {
                                { "client_id", "" },
                                { "redirect_uri", "" },
                                { "state", "" },
                                { "scope", "" },
                                { "response_type", "" }
                            }));

I have written following code in angular js (Without the parameters)

  return $http({
                method: 'POST',
                url: '/auth/auth/SAMLAuthorize',
                headers: { 'Content-Type': 
'application/x-www-form-urlencoded' }
            });

but it is not hitting the mvc controller. Can anyone please help me to 
resolve this issue? Also how can I send the parameters in the request?

Regards,
Anand

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to