I\'ve written code about httpwebrequest and httpwebresponse . I need to send data to server but got this exception \"This operation cannot be performed
The exception tells you what you need to know; HTTP is request => response, so if you have asked for the response (GetResponse()) you have implicitly said "my request is complete; give me the response". Move the GetRequestStream() code above the GetResponse().