login about faq

Below is captured using Fiddler :

GET http://www.xxx.xxx/api/uc.php?time=x&code=xxxxx HTTP/1.1

Accept: application/javascript, /;q=0.8 (no newline and quotes around 0.8)

Referer: hxxxxxxxx


Below is my partial source code to send the above request :

Request.AddHeader("Accept","application/javascript, */*;q=0.8");
Response = Unpack.Http.SynchronousRequest(szDomain,Port,bSsl,Request);


Below is the problem (newline and additional quote appeared) with "Accept" header taken from sessionlog. :

GET /api/uc.php?time=x&code=xxxx HTTP/1.1

Accept: application/javascript, /;

q="0.8" <<---!!! newline and quoted added "0.8" !!

Referer: xxxxx


Please advise what can be done to remove the newline and quotes issue.


Best regards Dragon

asked May 28 '13 at 07:40

dragon's gravatar image


This should NOT be the cause of any problem.

HTTP requests and responses are MIME. One of the most very basic and fundamental syntax rules for MIME headers is the ability to continue a MIME header line on the next line. This is a MIME continuation line. When the next header line begins with a SPACE or TAB character, it is a continuation of the previous line, with the leading SPACE/TAB of the continuation line removed. Any MIME parser, and thus any HTTP server SHOULD and MUST correctly parse MIME continuation lines if they are to work at all.


answered May 28 '13 at 08:20

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: May 28 '13 at 07:40

Seen: 1,131 times

Last updated: May 28 '13 at 08:20

powered by OSQA