On 18 April 2013 23:10, Sean P. DeNigris <sean@clipperadams.com> wrote:
Sven Van Caekenberghe-2 wrote
Where/how does Zinc think this is text ?
If I add #systemPolicy, and alter the snippet to: latestVersionUrl := 'http://mirrors.jenkins-ci.org/war/latest/jenkins.war'. javaArchiveMimeType := ZnMimeType main: 'application' sub: 'java-archive'. ZnClient new systemPolicy; accept: javaArchiveMimeType; followRedirects: true; url: latestVersionUrl; downloadTo: FileLocator imageDirectory.
I get either: a. /intermittently/ "ZnUnexpectedContentType: expected application/java-archive actual text/plain"
Here server disregards your request that content should be application/java-archive. Who to blame? Of course Java! :)
or b. it downloads, but it shows up in Mac Finder as a text file (kind: TEXT)... not the end of the world, but...
----- Cheers, Sean -- View this message in context: http://forum.world.st/Downloading-text-vs-binary-tp4682396p4682406.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.