ursvmg Posted August 2, 2010 Share Posted August 2, 2010 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 More sharing options...
ursvmg Posted August 2, 2010 Author Share Posted August 2, 2010 Any updates? I'm desperately looking for a solution. Kindly help Link to comment https://forums.phpfreaks.com/topic/209544-download-byte-served-file/#findComment-1094048 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.