From: marius p. <ma...@re...> - 2004-01-25 19:31:15
|
marius popa wrote: > if i try to download them in mozilla linux > the zip files don't send the proper content type to the browser > eg: it shows like >=20 > %PDF-1.2 %=C7=EC ..... >=20 >=20 got it why "Content-Type: text/html" it shoud be pdf application/pdf curl -v www.ibphoenix.com/downloads/sql_syntax.pdf * About to connect() to www.ibphoenix.com:80 * Connected to firebird.netfrastructure.com (209.113.237.205) port 80 > GET /downloads/sql_syntax.pdf HTTP/1.1 User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6=20 OpenSSL/0.9.7a ipv6 zlib/1.2.0.7 Host: www.ibphoenix.com Pragma: no-cache Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* < HTTP/1.1 200 OK < Date: Sun, 25 Jan 2004 20:10:14 GMT < Server: Apache/2.0.40 (Red Hat Linux) < Last-Modified: Sat, 07 Jul 2001 14:58:18 GMT < ETag: "adf63-11803-3e087680" < Accept-Ranges: bytes < Content-Length: 71683 < Connection: close < Content-Type: text/html; charset=3DISO-8859-1 %PDF-1.2 %?? 4 0 obj <</Length 5 0 R/Filter /FlateDecode>> and here is how it should be curl -v=20 http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/2= 4592.pdf * About to connect() to www.amd.com:80 * Connected to www.amd.com (212.72.49.70) port 80 > GET /us-en/assets/content_type/white_papers_and_tech_docs/24592.pdf=20 HTTP/1.1 User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6=20 OpenSSL/0.9.7a ipv6 zlib/1.2.0.7 Host: www.amd.com Pragma: no-cache Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* < HTTP/1.1 200 OK < Connection: Keep-Alive < Date: Sun, 25 Jan 2004 19:28:35 GMT < Age: 274315 < Server: Apache/1.3.26 (Unix) < Accept-Ranges: bytes < X-Pad: avoid browser bug < Last-Modified: Tue, 06 Jan 2004 15:43:30 GMT < ETag: "ca36-2e13fd-3ffad7a2" < Content-Length: 3019773 < Content-Type: application/pdf |