I know that I can generate and send a post via HttpWebRequest
, but I am wondering if it's possible to generate the post and return it to a web application so that it can perform the post.
In other words, I want the web application to call a method in my class library that generates the post request, but I want the web application to submit it. Is that possible?
EDIT:
I recognize that this sounds like a "WTF? Why would you want to do this?" so let me give some background. There is some fairly complex logic being used to build some of the the encrypted post values (some of which contain data the web application doesn't have access to). So to keep the web portion simple, we abstracted away the post generation. The problem now is that we need the calling application to be the one that actually makes the post.
Another clarification, I'd like to have the browser submit the request (i.e. as if the user filled out a form and submitted it).