HttpWebRequest splits request using HTTP 1.0 protocol

G

Guest

I am making a "Multipart" post to an Apache web server sending "text" as
well as "binary" data, and it doesn't seem to handle an HTTP 1.1 request
correctly. What it does not like is the "splitting" of the request, sending
the Headers first, waiting for a response, and then sending the data. I used
a "Proxy" that sends out the request all at once, and it works.

I have turned off the "Expect: 100" header for an HTTP 1.1 request, and it
still sends out the header and data separately. I then changed the Protocol
version to HTTP 1.0 thinking that it would stop that behavior, and to my
suprise it still splits the response.

Anybody know if there is an additional property to stop this?

I am using .NET Framework 1.1 sp1.

Thanks,
 
J

Joerg Jooss

Tonym said:
I am making a "Multipart" post to an Apache web server sending "text"
as well as "binary" data, and it doesn't seem to handle an HTTP 1.1
request correctly. What it does not like is the "splitting" of the
request, sending the Headers first, waiting for a response, and then
sending the data. I used a "Proxy" that sends out the request all at
once, and it works.

I have turned off the "Expect: 100" header for an HTTP 1.1 request,
and it still sends out the header and data separately. I then changed
the Protocol version to HTTP 1.0 thinking that it would stop that
behavior, and to my suprise it still splits the response.

Anybody know if there is an additional property to stop this?

Actually, all you've tried should have worked (speaking of should --
Apache should support HTTP Expectations...).

Can you post some code?


Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top