Jump to content

Download byte-served file


ursvmg

Recommended Posts

Dear all,

 

I'm trying to build an application to retrieve PDF documents from a site. The document being there is byte-served, so that I'm not able to get the complete document.

 

When i do a curl get for the document I get only the below.

 

HTTP/1.1 302 Found Date: Mon, 02 Aug 2010 01:14:18 GMT Server: Microsoft-IIS/6.0 Via: 1.1 COMP-NLB-9C Content-Length: 176 Location: http://xxxxx.yyyy.com/0012345.pdf Content-Type: text/html; charset=utf-8 X-Powered-By: ASP.NET X-AspNet-Version: 1.1.4322 Cache-Control: private HTTP/1.1 404 Not Found Date: Mon, 02 Aug 2010 01:14:18 GMT Server: Microsoft-IIS/6.0 Via: 1.1 COMP-NLB-9C Content-Length: 1635 Content-Type: text/html; charset=ISO-8859-1 X-Powered-By: ASP.NET

 

In firebug, I could see three GET requests. First one has the status '302 Found'. Second and third has status as '206 Partial Content'.

 

How to get the complete file in this case. Or guide me, if I'm doing it in a wrong way.

 

Regards,

Ursvmg

Link to comment
https://forums.phpfreaks.com/topic/209544-download-byte-served-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.