tag:blogger.com,1999:blog-8656429443005102101.post3357532232540028036..comments2023-05-16T05:17:07.957-07:00Comments on The Sandpit: How to create a simple proxy in ASP.NETRichiehttp://www.blogger.com/profile/10195785521277646822noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8656429443005102101.post-43362200634302636832012-07-29T23:01:21.835-07:002012-07-29T23:01:21.835-07:00PS. Sorry, I meant to write “optional” and “known”...PS. Sorry, I meant to write “optional” and “known”.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8656429443005102101.post-56164398199520721682012-07-29T22:52:18.542-07:002012-07-29T22:52:18.542-07:00Hi,
Thank you for a highly interesting plog post....Hi,<br /><br />Thank you for a highly interesting plog post. I read the question of trda ”How can i send post data to a page on this proxy service.” and your answer. However I cannot interpret your answer and I have some questions I would be most happy if you please could answer: <br /><br />(1) What does the new code allow the proxy to do?<br /><br />(2) Were in your original published code goes the modification?<br /><br />(3) In my application the proxy shall add (optimal) post data. Is that what the code in the Answer does?<br /><br />(4) If not, how can this (3) be accomplished?<br /><br />(5) Are there any special (know) limitation what calls cannot be made throw the proxy? What about https? <br /><br />Most grateful for answers to these questions,<br /><br /> Ulf LAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8656429443005102101.post-31549441709689980132011-12-07T17:57:39.180-08:002011-12-07T17:57:39.180-08:00@trda. Thanks for the clarification.@trda. Thanks for the clarification.Richiehttps://www.blogger.com/profile/10195785521277646822noreply@blogger.comtag:blogger.com,1999:blog-8656429443005102101.post-69628425974793062662011-10-18T03:36:51.574-07:002011-10-18T03:36:51.574-07:00the solution is that :
Stream newStream = webRequ...the solution is that :<br /><br />Stream newStream = webRequest.GetRequestStream();<br /> StreamReader sr = new StreamReader(HttpContext.Current.Request.InputStream);<br /> byte[] bytes = sr.CurrentEncoding.GetBytes(sr.ReadToEnd());<br /><br /> newStream.Write(bytes, 0, bytes.Length);<br /> newStream.Close();<br /> sr.Close();<br /><br /> webRequest.ContentType = "text/xml";trdanoreply@blogger.comtag:blogger.com,1999:blog-8656429443005102101.post-44537999121549952672011-10-18T01:11:32.973-07:002011-10-18T01:11:32.973-07:00hi,
thanks for code.
how can i send post data to...hi,<br /><br />thanks for code.<br /><br />how can i send post data to a page on this proxy service.trdanoreply@blogger.com