aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Content is unexpectedly truncated when fetched through a proxy server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Content is unexpectedly truncated when fetched through a proxy server" Watch "Content is unexpectedly truncated when fetched through a proxy server" New topic
Author

Content is unexpectedly truncated when fetched through a proxy server

Spencer Lee
Greenhorn

Joined: Jan 25, 2005
Posts: 13
Hello,

I'm connecting to an external web site and reading a file through the proxy server. However, the end of file marker seems to appear much sooner than it should. Any ideas as to what might be causing this?

My guess would be some timeout value on the proxy server, but I would like to make adjustments to my code and not the server if at all possible.



The results were:

Read Timeout:0
Content Length: 33390550
Total bytes read: 19898368



Any suggestions as to why this might be occurring would be much appreciated.

Thanks!

SPencer
Spencer Lee
Greenhorn

Joined: Jan 25, 2005
Posts: 13
I've come to the conclusion that the our firewall/proxy does not permit transmission of zip files whose uncompressed size is great that some file size. The problem looks like its resolved after changes made to the firewall settings.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Content is unexpectedly truncated when fetched through a proxy server
 
Similar Threads
How to send image over a network
Cannot Download PDF (streamed) in IE with HTTPS
Servlet to open a pdf
Need Server to know name of Transfering File
get image from URL using inputstream