473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Disallow "HTTP chunked" transfer !

Hi !

Yesterday, I posted a topic regarding to XML problem that I've been
having. The old topic can be found at:
http://groups.google.com/group/comp....0eeb03626018f4

Thanks to Álvaro G. Vicario for pointing out "chunked" transfer thing.
Anyway, I tried to avoid "chunked" transfer in HTTP protocol. I have
looked at "transfer-encoding" on the web, but it doesn't help much.
What value/variable should I specify in HTTP request to ask the server
not using "chunked" transfer ?

If anyone experienced this problem/ know how to do this, please share
your thought. Any help would be greatly appreciated.

Thanks,

Lazy Pig (Josh)

Jun 22 '06 #1
2 7365
On 22 Jun 2006 09:53:17 -0700, "la*******@gmail.com" <la*******@gmail.com>
wrote:
Yesterday, I posted a topic regarding to XML problem that I've been
having. The old topic can be found at:
http://groups.google.com/group/comp....0eeb03626018f4

Thanks to Álvaro G. Vicario for pointing out "chunked" transfer thing.
Anyway, I tried to avoid "chunked" transfer in HTTP protocol. I have
looked at "transfer-encoding" on the web, but it doesn't help much.
What value/variable should I specify in HTTP request to ask the server
not using "chunked" transfer ?

If anyone experienced this problem/ know how to do this, please share
your thought. Any help would be greatly appreciated.


HTTP/1.1 clients _must_ be able to accept and decode chunked transfer
encoding. If you are making an HTTP/1.1 request to fetch the data, then its a
bug in your code if you do not handle it. Are you doing raw requests using
fsockopen() etc.?

Some options:

(1) Implement chunked transfer encoding decoding.
(2) Use a library that implements this for you, rather than rolling your own
HTTP client (e.g. cURL, or PHP fopen wrappers).
(3) Make HTTP/1.0 requests instead.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jun 22 '06 #2
Hi Andy,

Thanks a lot for your response. My code works when I use HTTP 1.0 Raw
request with fsockopen.

Lazy Pig

Andy Hassall wrote:
On 22 Jun 2006 09:53:17 -0700, "la*******@gmail.com" <la*******@gmail.com>
wrote:
Yesterday, I posted a topic regarding to XML problem that I've been
having. The old topic can be found at:
http://groups.google.com/group/comp....0eeb03626018f4

Thanks to Álvaro G. Vicario for pointing out "chunked" transfer thing.
Anyway, I tried to avoid "chunked" transfer in HTTP protocol. I have
looked at "transfer-encoding" on the web, but it doesn't help much.
What value/variable should I specify in HTTP request to ask the server
not using "chunked" transfer ?

If anyone experienced this problem/ know how to do this, please share
your thought. Any help would be greatly appreciated.


HTTP/1.1 clients _must_ be able to accept and decode chunked transfer
encoding. If you are making an HTTP/1.1 request to fetch the data, then its a
bug in your code if you do not handle it. Are you doing raw requests using
fsockopen() etc.?

Some options:

(1) Implement chunked transfer encoding decoding.
(2) Use a library that implements this for you, rather than rolling your own
HTTP client (e.g. cURL, or PHP fopen wrappers).
(3) Make HTTP/1.0 requests instead.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool


Jun 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Manjesh Gowda | last post by:
Hi all, I am maintaing a persistent HTTP connection using the "HTTP CONNECT" method , this works fine for many proxies like Squid, ISA , etc. But the iPlanet proxy disconnects the conneciton...
24
by: sinister | last post by:
After doing a websearch, it appears that it's OK to omit the "http:" to form a relative URL. Are there any pitfalls to this? For example, if there is a page http://www.domain1.com/page1.html...
7
by: ryan.fairchild | last post by:
Ok I basically am creating a container for a bunch of other <div> tags. But I want to make four jpegs/gif/whatever that goes in each corner so they look rounded. I thought this is how I would do...
1
by: mike | last post by:
regards: I write java code to simulate my machine as a HTTP server, what is the "MUST REPLY" HTTP response headers? In my small survey,I think there are 2 "MUST REPLY" HTTP response headers....
0
by: Joeyej | last post by:
Hi - I'm trying to move/use a web form (containing some javascript field checks) previously hosted on a Windows 2000 server. However, the FORM METHOD="post..." command in the form (shown below)...
31
by: Yeah | last post by:
Is it absolutely necessary to include "http://" in an A HREF hyperlink? Would it be wise to remove this from one's Links page, just to save code?
3
by: John Nagle | last post by:
I'm getting a wierd error from urllib2 when opening certain URLs. The code works for most sites, but not all of them. Here's the traceback: InfoSitePage EXCEPTION while processing page...
11
by: jjw92 | last post by:
I've been banging my head against the wall with this one for a couple days so I'm hoping someone has some ideas. I have a web service that I created that is called by a .NET class library (which in...
2
by: Tamer | last post by:
Hi! Is there a way to change the protocoll type through Javascript without reloading (or making a request from the webserver) via Javascript? for example: http://mydomain.com...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.