HttpWebRequest splits request using HTTP 1.0 protocol

  • Thread starter Thread starter Guest
  • Start date Start date
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,
 
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,
 
Back
Top