Pergunta

How a webrequest can make between these twi applications...

Diagram sample code:

HttpWebRequest webRqst = (HttpWebRequest)WebRequest.Create(endpoint);
webRqst.UseDefaultCredentials = true;
webRqst.Method = "GET";
webRqst.Accept = "*/*";
webRqst.KeepAlive = true;
 using (WebResponse response = request.GetResponse())
                {
                    using (Stream stream = response.GetResponseStream())
                        {
                            using (StreamReader reader = new StreamReader(stream))
                            {
                                Console.WriteLine(reader.ReadToEnd());
                            }
                         }
                }

While I am making a request it always looking for the login page. My response is always the login form in the STS. Thank you.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top