Suggestion: Add CP Web Server to HTTP Headers
-
Hi Chris, I'm working with a small program to tear html pages (you will see it in your logs as 'User-Agent: html page tear-ror'. Would it be possible to have the web servers add their identity to the headers? For example X-Server: Web16. I'm finding some inconsistencies at times with served pages. When an issue is encountered, I dump the response-header and discard the message-body. I discard the body because the issue lies with the Content-Length field. I'd like to discuss what I am seeing and offer up the offending server. Jeff
-
Hi Chris, I'm working with a small program to tear html pages (you will see it in your logs as 'User-Agent: html page tear-ror'. Would it be possible to have the web servers add their identity to the headers? For example X-Server: Web16. I'm finding some inconsistencies at times with served pages. When an issue is encountered, I dump the response-header and discard the message-body. I discard the body because the issue lies with the Content-Length field. I'd like to discuss what I am seeing and offer up the offending server. Jeff
Jeffrey Walton wrote:
I'm finding some inconsistencies at times with served pages ... the issue lies with the Content-Length field.
I was observing it near constantly yesterday. But I have have not observed it today.
-
Hi Chris, I'm working with a small program to tear html pages (you will see it in your logs as 'User-Agent: html page tear-ror'. Would it be possible to have the web servers add their identity to the headers? For example X-Server: Web16. I'm finding some inconsistencies at times with served pages. When an issue is encountered, I dump the response-header and discard the message-body. I discard the body because the issue lies with the Content-Length field. I'd like to discuss what I am seeing and offer up the offending server. Jeff
Hi Jeff, Haven't seen you for a while. You will find server id on the last line of each page, for both forums and article pages. It will appear like "web18".
Best wishes, Hans
[CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]
-
Hi Jeff, Haven't seen you for a while. You will find server id on the last line of each page, for both forums and article pages. It will appear like "web18".
Best wishes, Hans
[CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]
Hi Hans,
Hans Dietrich wrote:
Haven't seen you for a while.
I've missed my pet programming projects :). I'm putting finishing touches on a TCP/IP/HTTP/Wireshark article. It's a warmup to something more interesting (IMHO).
Hans Dietrich wrote:
You will find server id on the last line of each page
Yep... unfortunately I will not parse it if Content-Length is not correct (plus it is tough to fish out down there). Web browsers allow a lot of slop - I prefer not. I can trade a couple of extra cookies in my current response-headers. Jeff