user3089816
user3089816

Reputation: 191

How to pass HTTP post parameters

In my asp.net application one webpage page_load event

protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string data = string.Empty;

            // Determine if session has Single Sign On credentials
            if (Request.Form["Rams"] != null)
            {
                data = RamsLogin();
            }

I would like to debug this page from outside the applicaton, How to pass Rams parameter via HTTP post to execute the RamsLogin() method?

Upvotes: 0

Views: 435

Answers (1)

Rubens Farias
Rubens Farias

Reputation: 57976

The Page_Load event runs every time the page loads. In your case, the SAMLlogin() method will execute whenever a client submit a POST request and inform some value into the samlResponse variable.

That request is usually made using HTML <form method="POST"> and the samlResponse variable would be an INPUT, SELECT or TEXTAREA element with the name="samlResponse" attribute.

I say usually because a program can simulate the same behavior without using any HTML at all.

Upvotes: 1

Related Questions