|
We have an ASP.NET forum. And, it's easy to integrate Google maps to your site.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hello everyone,
When we sending Http request, does the fields (key/value pair) in Http header (througt POST) or the key=value pairs in URL after ? (in Http GET) case sensitive or case in-sensitive? I can not find a standard document mentions this point.
thanks in advance,
George
|
|
|
|
|
You may want to search for the word "case" or "sensitive" in
this document:
HTTP 1.1[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark!
In section "4.2 Message Headers", seems the document does not cover whether values are case sensitive or case in-sensitive, it only mentions the header names are case in-sensitive -- "names are case-insensitive.". Any comments?
regards,
George
|
|
|
|
|
George_George wrote: it only mentions the header names are case in-sensitive -- "names are case-insensitive.". Any comments?
Section 14 has the details for all the headers.
From section 2.1 (which states how to read the details in
section 14):
""literals"...Quotation marks surround literal text. Unless stated
otherwise, the text is case-insensitive."
So from that I would assume all case-insensitive unless it
states otherwise in section 14.x
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark,
You think the Http header values of key/value pairs are so called "literals" in this document? But I can not see the BNF formular in this document formally defines values for key/value pair as "literals". Any comments?
regards,
George
|
|
|
|
|
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.
|
|
|
|