httpwebrequest

  • Thread starter Thread starter RP
  • Start date Start date
R

RP

Hi all, I am running .net 1.1 sp1 and for some reason when I use
httpwebrequest to submit a request it is adding a "Expect: 100-continue"
header. How do I get rid of it? I have tried setting the Expect to nothing
or an empty string but no luck.

thanks!
 
Also, is there anyway I can get Connection: Keep-Alive header added? Setting
KeepAlive = true is not working.

thanks!
 
Try to put this line before the WebRequest method:

System.Net.ServicePointManager.Expect100Continue = False


--
Regards

Adrian D. Garcia
MCSD
NDSoft Consultoria y Desarrollo
 
Did you try?

resquest.Headers.Add("Keep-Alive","true");

--
Regards

Adrian D. Garcia
MCSD
NDSoft Consultoria y Desarrollo
 
Back
Top