how do i emulate a http POST using C#

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I need to POST some hidden fields to a page, which i need to load in the
browser window..
i've tryed writting out the hidden fields and doing a
response.redirect/response.transfer but these don't send accross the hidden
fields....

so my question really is how do i send hidden fields and transfer to a page
(where they can be picked up from)?

Thanks a million in advance

Mike
 
If you want to do a post, look at the WebRequest class.

If you are trying to make the browser do that, then the browser will need to
initiate the post (inc. getting users permission if needed).

-Michael
MVP
 
You can also use the XMLHTTP object from client side script. It can
programmatically do from the client, what WebRequest can do from the server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top