473,386 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

HttpWebRequest.KeepAlive property

Hi,

I can't send 'Connection: Keep-Alive' property in the second connection
of my HttpWebRequest. Suppose:
HttpWebRequest hreq = .....
hreq.KeepAlive = true;
HttpWebResponse hresp = GetResp()....

------
here, it's OK, when i analyse packets with ethereal, I see 'Connection:
Keep-Alive. Then comes the seconde connection
-------

hreq = .....
hreq.KeepAlive = true;

-------
this time hreq.Method = "POST", and whatever I do, I can't manage to set
KeepAlive property. Interestingly enough, when I debug, KeepAlive is
always true, but there is no Connection: Keep-Alive line in the headers
sent to server...

Any help?

Thanks
Nov 16 '05 #1
0 1523

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gil Strauss | last post by:
When using .net framework HttpWebRequest object, how can we set the connection header to "keep-alive" Acording to Microsoft ducomentation, setting the keepAlive property to true, should do the job,...
1
by: Cliff Harris | last post by:
I am trying to automate a series of form posts on a website. This site requires that my session be kept alive through successive posts (it basically tracks me by a sessionid, and if I get a new...
3
by: Dan | last post by:
I'm experimenting with HttpWebRequest. After I've created a request: m_request = (HttpWebRequest) WebRequest.Create(uri); I'd like to repeatedly send requests to the URI, as follows: public...
0
by: joshblair | last post by:
Hello, I am trying to post XML documents to a third party using the HttpWebRequest. This URL uses HTTPS (SSL) but I don't have a client certificate to deal with. Apparently they are using...
1
by: Stumped | last post by:
I'm trying to remotely logon to a website however I'm experiencing a view state problem, due to there being a web cluster in place. I currently create an HttpWebRequest to GET login page, I then...
1
by: kellox | last post by:
I'm implementing a propiertary protocol for a company which is actually an extension of HTTP (extended with some specific headers). If I use the .NET class HttpWebRequest and HttpWebResponse...
8
by: gerbrandc | last post by:
Hello, I hope somebody has a good explanation for this issue. Okay I'm having troubles with the httpWebRequest method. I need to download reports from a specified server (can't give these...
1
by: twebb72 | last post by:
Scratching my head for a while on this one... This project uses code from "Understanding HttpWebRequest CookieContainer?" post on this site. C#, asp.net 2.0 The following code supplies...
2
by: MedIt | last post by:
Hi All, I am trying to Post a number of requests to a web service on a client server from a console application.Through this application I am firing some 400 requests to the Web Service, one after...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.