|
George_George wrote: You think the Http header values of key/value pairs are so called "literals" in this document?
No. Section 2.1 tells you how to interpret the notation used in section 14.
For example:
14.9 Cache-Control
Cache-Control = "Cache-Control" ":" 1#cache-directive
cache-directive = cache-request-directive
| cache-response-directive
cache-request-directive =
"no-cache" ; Section 14.9.1
| "no-store" ; Section 14.9.2
| "max-age" "=" delta-seconds ; Section 14.9.3, 14.9.4
| "max-stale" [ "=" delta-seconds ] ; Section 14.9.3
| "min-fresh" "=" delta-seconds ; Section 14.9.3
| "no-transform" ; Section 14.9.5
| "only-if-cached" ; Section 14.9.4
| cache-extension ; Section 14.9.6
cache-response-directive =
"public" ; Section 14.9.1
| "private" [ "=" <"> 1#field-name <"> ] ; Section 14.9.1
| "no-cache" [ "=" <"> 1#field-name <"> ]; Section 14.9.1
| "no-store" ; Section 14.9.2
| "no-transform" ; Section 14.9.5
| "must-revalidate" ; Section 14.9.4
| "proxy-revalidate" ; Section 14.9.4
| "max-age" "=" delta-seconds ; Section 14.9.3
| "s-maxage" "=" delta-seconds ; Section 14.9.3
| cache-extension ; Section 14.9.6
cache-extension = token [ "=" ( token | quoted-string ) ]
All those directives in quotes are literals. They are case insensitive
unless otherwise noted.
I see no reason to use any other case but exactly what they show in the
specicification
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark,
1.
I think we have got the conclusion, for key/value string pairs, both keys and values are case insensitive, correct?
2.
How about URL? I know domain part of URL is case insensitive, how about other parts? I read the RFC and found there are separate parts for URL and URI, and I am confused which should be the correct conclusion for URL case sensitive/insensitive?
regards,
George
|
|
|
|
|
George_George wrote: both keys and values are case insensitive, correct?
That's what I see. I think there's only one that mentions case sensitive
quoted strings.
George_George wrote: How about URL?
It's not entire clear, but from section 3.2.3 -
SHOULD be case-sensitive except for the host name and scheme name,
where "SHOULD" is apparently defined in RFC 2119.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark,
Let us summarize our discussion here.
1. For Http header key/value pair, all of the characters are case in-sensitive;
2. For URL, scheme/domain parts are case in-sensitive, and other parts (e.g. query part) are case-sensitive;
Correct understanding of our long discussion?
If yes, two more questions,
1. "case sensitive quoted strings." -- I think you are talking about Http header key/value pairs, but which part in RFC do you refer to when make this conclusion?
2.
"SHOULD be case-sensitive except for the host name and scheme name, where "SHOULD" is apparently defined in RFC 2119." -- could you let me know from which BNF formula or definition do you have this conclusion please?
regards,
George
|
|
|
|
|
Hi,
I wanted to validate a digital certificate by checking online CRL by C# code. To do this task, I use, X509Certificate2 and X509Chain class. But, a status saying "RevocationStatusUnknown" is coming as a result. CRL specified in the certificate is accessible via internet explorer on my m/c. Is there any access permissions we need to set @ IIS in order to access CRL?. IIS is running on local m/c here.
Could anyone please throw light on this?
Thanks In Advance
Ajil
|
|
|
|
|
Have you set the X509Chain.ChainPolicy.RevocationMode to X509RevocationMode.Online?
|
|
|
|
|
hi all,
we developed windows application (c#),we created setup file using bellow
linq,
it is showing error message at the time of installation
as "object reference is require".
http://www.codeproject.com/KB/install/sqlscriptinstall.aspx[^]
|
|
|
|
|
if you have a quesiont about an article, ask the author. If you want us all to try and help, try working out what line has the error, and posting some code. No way could I hope to help you based on this, it's ridiculous.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
<a href="http://www.codeproject.com/KB/graphics/PanZoom2.aspx?msg=2672101#xx2672101xx">http://www.codeproject.com/KB/graphics/PanZoom2.aspx?msg=2672101#xx2672101xx</a>[<a href="http://www.codeproject.com/KB/graphics/PanZoom2.aspx?msg=2672101#xx2672101xx" target="_blank" title="New Window">^</a>]
How can i activate scrollbars with this project using C#
|
|
|
|
|
You may want to ask the author of the mentioned article. There is a message board at the bottom.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello everyone,
I want to monitor all Http traffic from my local computer.
I am interested in the headers/bodies in request/response. Any code samples so that I can easily write one?
Thanks in advance
Himal Rupera.
|
|
|
|
|
You can use Fiddler
Imran
[MCTS]
Few have audacity to speak truth
|
|
|
|
|
I am new to C#...I am creating a program that has 2 forms...Inside form1, there's a panel, which has form2...I want data in form2 to be displayed in listbox which is in form1...when i click the form2's save button....form2 in panel will hide....then the one running in the backdrop is form1 with the listbox...how can i update the data in listbox in form1,without using Form1 x=new Form1(); x.Show(); (or how can i activate form1 with updated listbox)...Thanks in advance...
|
|
|
|
|
Hi,
I need to create an application to control some LEDs. I have seen an article on CP which used parallel port. Is there any other example please?
Thanks very much
|
|
|
|
|
Hi,
Please take a look at the following articles:
Article1[^]
Article2[^]
Article3[^]
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Hi
Thanks for your reply but i need to control some electronic LEDs from the pc through a particular port like for example through a USB port.Since I don't have a parallel port.
Thanks
|
|
|
|
|
That is the only article that I have seen on the CodeProject that can do what you are asking, and for that matter, it will probably be the simplest since their is an attached article to the code.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hi
Is there a way of changing the actual display size of the ToolstripButton Image? I am not talking about the BackgroundImage.
I can change the size of the ToolstripButton when I make ToolstripButton.AutoSize = false, but it does not matter how big I make the ToolstripButton, the Image size stays 16 x 16.
I have tried getting the Image from the ToolstripButton and change the size and put it back on the ToolstripButton, but it still stays 16 x 16. The size of the image has changed, because I tested it by displaying it in PictureBoxes before and after the resize, but on the ToolstripButton the display size does not change.
Regards.
|
|
|
|
|
This question is old, but I was looking for the same information. I finally figured it out.
Set ToolStripButton.ImageScaling = false, and ToolStripButton.AutoSize = false. Then you can use an image of any size and it won't be resized/scaled. You will be responsible to ensure that the image is the right size for your button size.
HTH.
--sk.
|
|
|
|
|
Another option is to set ToolStripButton.ImageScaling = true, and set it's containing ToolStrip controll's ImageScalingSize property to a desired size. You can, for instance, add a 48x48 image to a button, leave the button's ImageScaling property = true, and set the containing ToolStrip's ImageScalingSize property to 24x24, and the image will be scaled down to 24x24 (not the default 16x16).
You will also want to set the ToolStripButton.AutoSize property to true (otherwise, modifying the ImageScalingSize property doesn't seem to do anything.)
HTH.
--sk.
|
|
|
|
|
Set Autosize = False, set the size you want, set ImageScaling=None
|
|
|
|
|
hi!
i am developing a web base application using c#.net with SQL 2005. In my web site i am facing problem in creating Directory structure. i am confused that how to creat directory structure in web base application. I have a little idea to creat directory structure in window base application but in web base i cannot be doit. please help me if any body can. please...
Hoping for good response.
|
|
|
|
|
We have an ASP.NET forum. Using server.mappath to get the root is the only extra step you need to create directories on your server. Of course, you cannot create directories on the client with ASP.NET.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I'm creating a simple chat application so I started programming with the user interface. Ok here's how I did my layout, I have a split container in a horizontal orientation. The panel that is above the split container has a rich textbox where output or messages pops out including the user's messages. The panel that is below the split container also a rich textbox where the user enters the message. Whenever the user has finished typing the message, they hit the ENTER key, and then the message pops out in the rich text box that is above the split container. After hitting Enter, the rich textbox(input) should be cleared out which was not a problem. Here's the problem on that textbox, after clearing rich textbox, THE I-BEAM pointer should be pointing on the FIRST LINE... well it doesn't after I clear the rich textbox it is still pointing on the second line. Is there a command that I can CONTROL the I-BEAM pointer to POINT on the first line? or is there any other way around?
|
|
|
|
|
Can you please post your code?
|
|
|
|