Mercurial > hg > nginx-site
annotate xml/en/docs/faq/chunked_encoding_from_backend.xml @ 924:a2aea48ff155
New "installation" article.
Old "installation" was renamed to "configure" and describes how
to build nginx from sources.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 31 May 2013 13:05:51 +0400 |
parents | af3f38e349eb |
children | 66a30a380fba |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
374
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
374
diff
changeset
|
2 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
374
diff
changeset
|
3 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
374
diff
changeset
|
4 |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
5 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
6 |
625
af3f38e349eb
Removed terminal whitespace and fixed apostrophes used.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
7 <article name="Why nginx doesn’t handle chunked encoding |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
8 responses from my backend properly?" |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
9 link="/en/docs/faq/chunked_encoding_from_backend.html" |
589 | 10 lang="en" |
11 rev="1"> | |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
12 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
13 <section> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
14 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
15 <para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
16 <initial>Q:</initial> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
17 My backend server appears to send HTTP/1.0 responses using |
625
af3f38e349eb
Removed terminal whitespace and fixed apostrophes used.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
18 chunked encoding but nginx doesn’t handle it correctly. |
af3f38e349eb
Removed terminal whitespace and fixed apostrophes used.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
19 For instance, I’m using nginx as a frontend to my node.js |
200
19c060caf965
- Figured out how to add new faq entries to makefile
Andrey Alexeev <andrew@nginx.com>
parents:
198
diff
changeset
|
20 application and instead of pure JSON from backend, nginx |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
21 returns something framed in decimal numbers like |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
22 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
23 <programlisting> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
24 47 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
25 {"error":"query error","message":"Parameter(s) missing: user,password"} |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
26 0 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
27 </programlisting> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
28 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
29 </para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
30 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
31 <para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
32 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
33 </para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
34 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
35 <para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
36 <initial>A:</initial> |
198
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
37 Your backend violates HTTP specification (see |
374
a413dffb0557
Replaced "a href" with "link doc" / "link url".
Ruslan Ermilov <ru@nginx.com>
parents:
200
diff
changeset
|
38 <link url="http://tools.ietf.org/html/rfc2616#section-3.6">RFC 2616, |
a413dffb0557
Replaced "a href" with "link doc" / "link url".
Ruslan Ermilov <ru@nginx.com>
parents:
200
diff
changeset
|
39 "3.6 Transfer Codings"</link>). |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
40 The "chunked" transfer-codings must not be used with HTTP/1.0. |
625
af3f38e349eb
Removed terminal whitespace and fixed apostrophes used.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
41 You’d need to either fix your backend application or upgrade |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
42 to nginx version 1.1.4 and newer, where an additional code |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
43 was introduced to handle such erratic backend behavior. |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
44 </para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
45 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
46 </section> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
47 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
48 </article> |