data transmission between two sites

Posted by SaMSa on Stack Overflow See other posts from Stack Overflow or by SaMSa
Published on 2012-09-22T08:35:37Z Indexed on 2012/09/22 9:37 UTC
Read the original article Hit count: 259

Filed under:
|
|
|

I'm use Asp.Net Mvc 4
www.hostname.com to my site from my report.hostname2.com
send and receive data to move directly to that address by the string bi codebehind.
querysstring not, because sending a very long string

I mean rapor.coskunoglu.net/Pdf address to send string data to move directly to
that address PDF of the screen to make it appear so.

How can I do this? Thank you, take it easy.

I'm sorry, my english is not good.


EDIT:
I want to use POST.
sb -> my StringBuilder.

byte[] bytt = Encoding.UTF8.GetBytes(sb.ToString());   
 WebRequest wr = WebRequest.Create("http://report.hostname2.com/Pdf");   
 wr.ContentType = "application/x-www-form-urlencoded";   
 wr.ContentLength = bytt.Length;   
 wr.Method = "POST";   
 Stream st = wr.GetRequestStream();   
 st.Write(bytt, 0, bytt.Length);   
 st.Close();

After you send the POST I want to go to report.hostname2.com. Did you see this my job?

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml