You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Anand Kulkarni <An...@synechron.com> on 2008/06/25 12:33:31 UTC

[users@httpd] Unabling Chunked encoding in Apache

Hi,
 
I want to send large amount of data from client to server through
Apache. hence, I am using Apache as proxy using the standard mod_proxy
module.
 
Client does not know the length of data to be sent and hence can not set
the content length value.
 
So, how can I send this large data without knowing its size. I heard of
Chunked Data concept. How shall I introduce this concept in Apache?
 
Waiting for the reply.
regards,
 
Anand
 

RE: [users@httpd] Unabling Chunked encoding in Apache

Posted by Anand Kulkarni <An...@synechron.com>.
Hi,

I got a desktop client application that sends HTTP request to Apache
using HTTP tunneling. See the sample code at:
http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/samples/sockets/
client/SSLSocketClientWithTunneling.java

The data is sent using POST method (I tried for GET as well).

I am sending a plain text data so the content type is text/plain.

-Anand


-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: Wednesday, June 25, 2008 4:23 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Unabling Chunked encoding in Apache


Sorry...
I did not read the OP's question well enough, and failed to click that 
he was talking about sending large chunks of data from client TO Apache 
server.  My mistake, I apologise.

To the original poster :

Could you explain a little bit about the client who is sending the data
?
- what kind of client is that ?
- how is it sending it ? via a POST ?

I mean, are you talking about a browser with an html form with a <input 
type="file"> or about something else ?

Thanks
André



André Warnier wrote:
> I could swear that I saw something about that in the mod_proxy
> documentation on the Apache site.
> 
> Anand Kulkarni wrote:
>> Hi,
>>  
>> I want to send large amount of data from client to server through 
>> Apache. hence, I am using Apache as proxy using the standard 
>> mod_proxy module.
>>  
>> Client does not know the length of data to be sent and hence can not 
>> set the content length value.
>>  
>> So, how can I send this large data without knowing its size. I heard 
>> of Chunked Data concept. How shall I introduce this concept in 
>> Apache?
>>  
>> Waiting for the reply.
>> regards,
>>  
>> Anand
>>  
>>
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project. See <URL:http://httpd.apache.org/userslist.html> for more 
> info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unabling Chunked encoding in Apache

Posted by André Warnier <aw...@ice-sa.com>.
Sorry...
I did not read the OP's question well enough, and failed to click that 
he was talking about sending large chunks of data from client TO Apache 
server.  My mistake, I apologise.

To the original poster :

Could you explain a little bit about the client who is sending the data ?
- what kind of client is that ?
- how is it sending it ? via a POST ?

I mean, are you talking about a browser with an html form with a <input 
type="file"> or about something else ?

Thanks
André



André Warnier wrote:
> I could swear that I saw something about that in the mod_proxy 
> documentation on the Apache site.
> 
> Anand Kulkarni wrote:
>> Hi,
>>  
>> I want to send large amount of data from client to server through
>> Apache. hence, I am using Apache as proxy using the standard mod_proxy
>> module.
>>  
>> Client does not know the length of data to be sent and hence can not set
>> the content length value.
>>  
>> So, how can I send this large data without knowing its size. I heard of
>> Chunked Data concept. How shall I introduce this concept in Apache?
>>  
>> Waiting for the reply.
>> regards,
>>  
>> Anand
>>  
>>
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Unabling Chunked encoding in Apache

Posted by Anand Kulkarni <An...@synechron.com>.
Hi,

I have tried for Apache 2.2 as well but it did not work.

You may give me solution for any Apache version.

-Anand


-----Original Message-----
From: Nick Kew [mailto:nick@webthing.com] 
Sent: Wednesday, June 25, 2008 4:39 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Unabling Chunked encoding in Apache


On Wed, 25 Jun 2008 16:37:20 +0530
"Anand Kulkarni" <An...@synechron.com> wrote:

> Hi,
> 
> I have also seen about chunk data at 
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

Documents for 2.2.

> For Apache 2.0.63, inside httpd.conf file I set the environment:

don't necessarily apply to 2.0.

Upgrade!


-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unabling Chunked encoding in Apache

Posted by Nick Kew <ni...@webthing.com>.
On Wed, 25 Jun 2008 16:37:20 +0530
"Anand Kulkarni" <An...@synechron.com> wrote:

> Hi,
> 
> I have also seen about chunk data at
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

Documents for 2.2.

> For Apache 2.0.63, inside httpd.conf file I set the environment:

don't necessarily apply to 2.0.

Upgrade!


-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Unabling Chunked encoding in Apache

Posted by Anand Kulkarni <An...@synechron.com>.
Hi,

I have also seen about chunk data at
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

Refer to the section "Request Bodies" & "Reverse Proxy Request Headers".


For Apache 2.0.63, inside httpd.conf file I set the environment:

SetEnv proxy-sendchunked 1

But it did not work. Have somebody implemented this concept?

-Anand


-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: Wednesday, June 25, 2008 4:12 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Unabling Chunked encoding in Apache


I could swear that I saw something about that in the mod_proxy 
documentation on the Apache site.

Anand Kulkarni wrote:
> Hi,
>  
> I want to send large amount of data from client to server through 
> Apache. hence, I am using Apache as proxy using the standard mod_proxy

> module.
>  
> Client does not know the length of data to be sent and hence can not 
> set the content length value.
>  
> So, how can I send this large data without knowing its size. I heard 
> of Chunked Data concept. How shall I introduce this concept in Apache?
>  
> Waiting for the reply.
> regards,
>  
> Anand
>  
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unabling Chunked encoding in Apache

Posted by André Warnier <aw...@ice-sa.com>.
I could swear that I saw something about that in the mod_proxy 
documentation on the Apache site.

Anand Kulkarni wrote:
> Hi,
>  
> I want to send large amount of data from client to server through
> Apache. hence, I am using Apache as proxy using the standard mod_proxy
> module.
>  
> Client does not know the length of data to be sent and hence can not set
> the content length value.
>  
> So, how can I send this large data without knowing its size. I heard of
> Chunked Data concept. How shall I introduce this concept in Apache?
>  
> Waiting for the reply.
> regards,
>  
> Anand
>  
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org