Converting Request object to WebRequest in asp.net
-
Hi All, I am writing internet application proxy for which i have to convert HttpContext.Current.Request object to WebRequest object such that i pass on all the information from Request to WebRequest. Any ideas? Thanks, Amit
You can't convert them, they are two seperate objects for different purposes. What are you trying to accomplish?
only two letters away from being an asset
-
You can't convert them, they are two seperate objects for different purposes. What are you trying to accomplish?
only two letters away from being an asset
I am trying to write internet application which will be hosted by me and used by client but application need to access the database which is exposed as webservice in intranet. Now, i was thinking of hosting a application proxy on client side which will access webservice in intranet environment and then call my application in internet. For an example say client need access Default.aspx page, it will go the application proxy and depending on which page i am trying to access application proxy will get the information from client database and then it will reconstruct the webrequest and send the request to my application. Thats what i am trying to achieve. Let me know if i can achieve above funtionality some other way. Thanks, Amit
-
I am trying to write internet application which will be hosted by me and used by client but application need to access the database which is exposed as webservice in intranet. Now, i was thinking of hosting a application proxy on client side which will access webservice in intranet environment and then call my application in internet. For an example say client need access Default.aspx page, it will go the application proxy and depending on which page i am trying to access application proxy will get the information from client database and then it will reconstruct the webrequest and send the request to my application. Thats what i am trying to achieve. Let me know if i can achieve above funtionality some other way. Thanks, Amit
Let me know when you work this out. :rolleyes:
only two letters away from being an asset