Why is my chunked request removing the trailing CRLF?

I’ve just spent the past 10 hours trying to figure out why my http request was failing when I did a request.Content.ReadAsMultipartAsync().Result.Contents It kept returning the error: Unexpected end of MIME multipart stream. MIME multipart message is not complete. After many hours of research, I finally discovered that the request did not have an ending … Read more

Do I need to handle chunked HTTP requests if I only work with GET requests? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 8 years ago. Improve this question I am writing a Netty server that handles HTTP GET requests from the browser to serve scripts or pixels. My understanding is that … Read more

Using Apache as a proxy with chunked encoding and digest authentication

I’m experiencing a strange problem. I’m using Apache as a proxy and submitting data using chunked encoding. The issue that when I try to use digest authentication in this configuration the proxy just hangs and eventually times out. The request never makes it to the server that is sitting behind Apache. Here is my bare … Read more

Un-chunking chunked response for varnish

I have a database query tool that returns data with Transfer-encoding: chunked. I’d like to use existing varnish infrastructure to cache responses from this tool, but varnish refuses to cache chunked documents. Between varnish and the tool itself, there’s nginx proxy but I could not find any way to make it un-chunk the responses. Is … Read more

Does httpd ProxyPass buffer http POST payload before sending it to backend server?

I’m looking to assert whether, in the case of httpd used as a reverse proxy (mod_proxy_http & ProxyPass) and with a POST request (not chunked), if httpd buffers (memory and/or disk) complete request (POST payload included) BEFORE initiating/starting to send the request to the origin/backend server. If you don’t have the answer, would you recommend … Read more

Chrome HTTP2 requests do not finish for large gzipped files (Apache)

I recently upgraded Aapche to 2.4.26 (ondrej ppa) on Ubuntu 16.04. By default, modules deflate and http2 are enabled. On Chrome, when serving large JS files, the request simply does not finish and fails with net::ERR_CONNECTION_CLOSED after a long time has elapsed (essentially, time specified by Apache Timeout setting). On Firefox, everything runs perfectly. What … Read more

Nginx reverse proxy repackaging chunked responses

I am running nginx/1.1.19: # nginx -V nginx version: nginx/1.1.19 TLS SNI support enabled configure arguments: –prefix=/etc/nginx –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-client-body-temp-path=/var/lib/nginx/body –http-fastcgi-temp-path=/var/lib/nginx/fastcgi –http-log-path=/var/log/nginx/access.log –http-proxy-temp-path=/var/lib/nginx/proxy –http-scgi-temp-path=/var/lib/nginx/scgi –http-uwsgi-temp-path=/var/lib/nginx/uwsgi –lock-path=/var/lock/nginx.lock –pid-path=/var/run/nginx.pid –with-debug –with-http_addition_module –with-http_dav_module –with-http_geoip_module –with-http_gzip_static_module –with-http_image_filter_module –with-http_realip_module –with-http_stub_status_module –with-http_ssl_module –with-http_sub_module –with-http_xslt_module –with-ipv6 –with-sha1=/usr/include/openssl –with-md5=/usr/include/openssl –with-mail –with-mail_ssl_module –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module I am using it to reverse proxy a … Read more

Problem with “Transfer-Encoding: chunked” in Apache 2.2

One of client of our web service uses axis2 application that sends HTTP 1.1 query with: Transfer-Encoding: chunked header. Such a query is refused by our Apache 2.2 with message: <title>411 Length Required</title> </head><body> <h1>Length Required</h1> <p>A request of the requested method POST requires a valid Content-length.<br /> In Apache logs there is: [Mon May … Read more

Recompilled Nginx 1.1.19 for chunked upload but still not working….

I can not get the chunked uploading to work. Even after recompiling Nginx. I am using nginx 1.1.19 on ubuntu 12.04. I downloaded the source code of nginx 1.1.19 and module for chunked uploading and compiled it as follows. ./configure –prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –user=www-data –group=www-data –conf-path=/etc/nginx/nginx.conf –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-fastcgi-temp-path=/var/lib/nginx/fastcgi –http-log-path=/var/log/nginx/access.log –lock-path=/var/lock/nginx.lock –pid-path=/var/run/nginx.pid –with-debug –with-http_gzip_static_module –with-http_ssl_module –with-sha1=/usr/include/openssl … Read more