HttpWebRequest and HttpWebResponse : maintaining state of logged in request for consecutive queries
问题 I have a few HttpWebRequests and HttpWebResponses chained together, also using CookieContainer. The code simulates a user going through three different 'I agree' pages which set the cookie info, logging in with username and password on a fourth, and doing a POST (search) on the fifth returning the response as a string. Is there a way I can maintain the HttpWebRequest object as 'logged in' to avoid going through those steps each time any user performs a search? Can I set it up as static, and