D
D
Dmitry Ti2015-05-28 11:53:14
ASP.NET
Dmitry Ti, 2015-05-28 11:53:14

How to make a Get/Post request via websocket in the Action method on the server?

How to make a Get/Post request in the Action method without Redirect, i.e. so that the user does not see the data from which site (hide access to a third-party resource). Use the server as a proxy

private HttpStatusCodeResult Click(int out_id)
        {
           /*Как здесь сделать get запрос

Redirect("http://ip_adress/ok?" + out_id);
            return HttpStatusCodeResult;
*/        
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Mozhaykin, 2015-05-28
@smozhaykin

Use HttpWebRequest ?

D
Dmitriy Ti, 2015-06-05
@demylia

seems to fit, did this:

HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create("http://ya.ru" );//+ out_id);

myReq.GetResponse();

Now the question is how to make "ws://ya.ru" instead of " ya.ru " - i.e. sending via websocket

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question