<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare für DigiBlog</title>
	<atom:link href="http://www.digiblog.de/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digiblog.de</link>
	<description>...the know-how blog of DigiLog</description>
	<lastBuildDate>Tue, 23 Apr 2013 22:18:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Kommentar zu TYPO3: Sanitize a database that uses Latin1 character encodings in UTF-8 database fields von Umstellung auf UTF8 ( nach Update auf Typo3 4.7</title>
		<link>http://www.digiblog.de/2011/03/sanitize-a-typo3-database-that-uses-latin1-character-encodings-in-utf-8-database-fields-2/#comment-28682</link>
		<dc:creator>Umstellung auf UTF8 ( nach Update auf Typo3 4.7</dc:creator>
		<pubDate>Tue, 23 Apr 2013 22:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=1021#comment-28682</guid>
		<description><![CDATA[[...]  [...]]]></description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Android and the HTTP download file headers von Mohan</title>
		<link>http://www.digiblog.de/2011/04/android-and-the-download-file-headers/#comment-27903</link>
		<dc:creator>Mohan</dc:creator>
		<pubDate>Wed, 17 Apr 2013 02:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=740#comment-27903</guid>
		<description><![CDATA[Hello There,

I have been trying to download pdf file from asp.net website  from my samsung galaxy tab  but always download as .htm  eventhough i have already installed pdf software. I&#039;m able to download pdf from ipad, and all the other browsers.  but only problem with android software.
I&#039;m using this code:

    byte[] fileBytes;
        using (var webResponse = req.GetResponse())
        {
            Stream fStream = webResponse.GetResponseStream();
            fileBytes = ReadFully(fStream);
        }
        Response.Clear();
        Context.Response.ClearHeaders();
        Context.Response.ClearContent();
        Response.BufferOutput = true;
        Response.Buffer = true;
        Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;  filename=&quot; + reportName + &quot;.PDF&quot;);
        Response.AppendHeader(&quot;Pragma&quot;, &quot;public&quot;);
        Context.Response.ContentType = &quot;application/PDF&quot;;
        Context.Response.BinaryWrite(fileBytes);
        Context.ApplicationInstance.CompleteRequest();

could you sugges any changes for this code to work in android  to download PDF from asp.net website.

regards,

Mo]]></description>
		<content:encoded><![CDATA[<p>Hello There,</p>
<p>I have been trying to download pdf file from asp.net website  from my samsung galaxy tab  but always download as .htm  eventhough i have already installed pdf software. I&#8217;m able to download pdf from ipad, and all the other browsers.  but only problem with android software.<br />
I&#8217;m using this code:</p>
<p>    byte[] fileBytes;<br />
        using (var webResponse = req.GetResponse())<br />
        {<br />
            Stream fStream = webResponse.GetResponseStream();<br />
            fileBytes = ReadFully(fStream);<br />
        }<br />
        Response.Clear();<br />
        Context.Response.ClearHeaders();<br />
        Context.Response.ClearContent();<br />
        Response.BufferOutput = true;<br />
        Response.Buffer = true;<br />
        Response.AddHeader(&#8220;content-disposition&#8221;, &#8220;attachment;  filename=&#8221; + reportName + &#8220;.PDF&#8221;);<br />
        Response.AppendHeader(&#8220;Pragma&#8221;, &#8220;public&#8221;);<br />
        Context.Response.ContentType = &#8220;application/PDF&#8221;;<br />
        Context.Response.BinaryWrite(fileBytes);<br />
        Context.ApplicationInstance.CompleteRequest();</p>
<p>could you sugges any changes for this code to work in android  to download PDF from asp.net website.</p>
<p>regards,</p>
<p>Mo</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Android and the HTTP download file headers von Victoria</title>
		<link>http://www.digiblog.de/2011/04/android-and-the-download-file-headers/#comment-23365</link>
		<dc:creator>Victoria</dc:creator>
		<pubDate>Sun, 17 Mar 2013 21:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=740#comment-23365</guid>
		<description><![CDATA[Sorry, the code got &quot;eaten up&quot; a bit because of the php tags I inserted:

header(&#039;Content-Disposition: attachment; filename=&quot;my.rar&quot;&#039;);
header(&quot;Content-Type: application/octet-stream&quot;);
readfile(&quot;my.rar&quot;);
exit;
---&gt; this one above is fine for direct download

if (isset($_SERVER[&#039;HTTP_REFERER&#039;]) &amp;&amp; strpos($_SERVER[&#039;HTTP_REFERER&#039;],&quot;192.168.10.100&quot;) &gt; 0) {
header(&#039;Content-Disposition: attachment; filename=&quot;my.rar&quot;&#039;);
header(&quot;Content-Type: application/octet-stream&quot;);
readfile(&quot;my.rar&quot;);
exit;
}
---&gt; this one breaks in android stock browser, creates a file with size 0.
---&gt; if else statement is added, it wouldn&#039;t even create a file with size 0.]]></description>
		<content:encoded><![CDATA[<p>Sorry, the code got &#8220;eaten up&#8221; a bit because of the php tags I inserted:</p>
<p>header(&#8216;Content-Disposition: attachment; filename=&#8221;my.rar&#8221;&#8216;);<br />
header(&#8220;Content-Type: application/octet-stream&#8221;);<br />
readfile(&#8220;my.rar&#8221;);<br />
exit;<br />
&#8212;&gt; this one above is fine for direct download</p>
<p>if (isset($_SERVER['HTTP_REFERER']) &amp;&amp; strpos($_SERVER['HTTP_REFERER'],&#8221;192.168.10.100&#8243;) &gt; 0) {<br />
header(&#8216;Content-Disposition: attachment; filename=&#8221;my.rar&#8221;&#8216;);<br />
header(&#8220;Content-Type: application/octet-stream&#8221;);<br />
readfile(&#8220;my.rar&#8221;);<br />
exit;<br />
}<br />
&#8212;&gt; this one breaks in android stock browser, creates a file with size 0.<br />
&#8212;&gt; if else statement is added, it wouldn&#8217;t even create a file with size 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Android and the HTTP download file headers von Victoria</title>
		<link>http://www.digiblog.de/2011/04/android-and-the-download-file-headers/#comment-23364</link>
		<dc:creator>Victoria</dc:creator>
		<pubDate>Sun, 17 Mar 2013 21:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=740#comment-23364</guid>
		<description><![CDATA[Hello.

I found your article quite useful.
However, there&#039;s still one problem that I cannot deal with. Maybe it relates somehow to the authentication issue, but I&#039;m not really sure, so I will post it here if you have an answer as to why that happens, some workaround... Anything would be much appreciated. :)

What I want is - check the referer and if it&#039;s X, then go on with the download, otherwise - load some page.
I&#039;m using PHP and the following does work for a direct download:

However, using the referer check would break it for some reason:
 0) {
header(&#039;Content-Disposition: attachment; filename=&quot;my.rar&quot;&#039;);
header(&quot;Content-Type: application/octet-stream&quot;);
readfile(&quot;my.rar&quot;);
exit;
?&gt;
}
The file would then show up in the downloaded files list, but have a size of 0.
What is more, if I add an else statement - the file does not show up at all. Although it would go through the if (I checked by changing the contents of the if)

So basically - no if - the headers work, with if or if/else - there&#039;s some different and weird behavior.
I was using an emulator with Android 4.0.3 if that&#039;s of any importance.

Best,
Victoria]]></description>
		<content:encoded><![CDATA[<p>Hello.</p>
<p>I found your article quite useful.<br />
However, there&#8217;s still one problem that I cannot deal with. Maybe it relates somehow to the authentication issue, but I&#8217;m not really sure, so I will post it here if you have an answer as to why that happens, some workaround&#8230; Anything would be much appreciated. <img src='http://www.digiblog.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>What I want is &#8211; check the referer and if it&#8217;s X, then go on with the download, otherwise &#8211; load some page.<br />
I&#8217;m using PHP and the following does work for a direct download:</p>
<p>However, using the referer check would break it for some reason:<br />
 0) {<br />
header(&#8216;Content-Disposition: attachment; filename=&#8221;my.rar&#8221;&#8216;);<br />
header(&#8220;Content-Type: application/octet-stream&#8221;);<br />
readfile(&#8220;my.rar&#8221;);<br />
exit;<br />
?&gt;<br />
}<br />
The file would then show up in the downloaded files list, but have a size of 0.<br />
What is more, if I add an else statement &#8211; the file does not show up at all. Although it would go through the if (I checked by changing the contents of the if)</p>
<p>So basically &#8211; no if &#8211; the headers work, with if or if/else &#8211; there&#8217;s some different and weird behavior.<br />
I was using an emulator with Android 4.0.3 if that&#8217;s of any importance.</p>
<p>Best,<br />
Victoria</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Android and the HTTP download file headers von Steve Witham</title>
		<link>http://www.digiblog.de/2011/04/android-and-the-download-file-headers/#comment-20650</link>
		<dc:creator>Steve Witham</dc:creator>
		<pubDate>Sat, 02 Mar 2013 08:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=740#comment-20650</guid>
		<description><![CDATA[Hi!  I had different results on my Android, but solved them, so here&#039;s my info.
Android 2,3.7 Browser 2.3.7

First of all, your test:
  o  The first test, cdafqZIP: My phone FAILS to download the file.
  o  The second test, cdafqzip: My phone SUCCEEDS.
I think maybe they changed the list of okay extensions.
By the way, your files are served with &quot;Transfer-Encoding: chunked&quot; and no Content-Length.

I&#039;m serving my files using a Python / WSGI script running either on a separate computer or on the phone itself.  I had .txt, .jpg, .zip and .py files.  None of them would download.  I looked at the headers using curl -D, and I was generating the lines exactly as prescribed above.

My response headers say HTTP/1.0 even though the request was HTTP/1.1.  Maybe that has something to do with this.  In my fix below I did not change the HTTP/1.0.

I noticed that there was no Content-Length in any of the headers, but I thought maybe curl was just leaving it out, or that it didn&#039;t matter.  The download of cdafqzip worked with no Content-Length.  And, all of my non-download pages displayed on browsers with no Content-Length.

Then I noticed one of my other pages &lt;i&gt;did&lt;/i&gt; have Content-Length and I researched a little about how that&#039;s produced in WSGI.

For Python people: the fix that worked for me was to have my WSGI app() function return a list with one string in it.  Not a string, not a list of more than one string.  All three methods produce pages my browsers can show, but only [&quot;like this\n&quot;] produces Content-Length.

And that&#039;s it.  All my downloads work now.]]></description>
		<content:encoded><![CDATA[<p>Hi!  I had different results on my Android, but solved them, so here&#8217;s my info.<br />
Android 2,3.7 Browser 2.3.7</p>
<p>First of all, your test:<br />
  o  The first test, cdafqZIP: My phone FAILS to download the file.<br />
  o  The second test, cdafqzip: My phone SUCCEEDS.<br />
I think maybe they changed the list of okay extensions.<br />
By the way, your files are served with &#8220;Transfer-Encoding: chunked&#8221; and no Content-Length.</p>
<p>I&#8217;m serving my files using a Python / WSGI script running either on a separate computer or on the phone itself.  I had .txt, .jpg, .zip and .py files.  None of them would download.  I looked at the headers using curl -D, and I was generating the lines exactly as prescribed above.</p>
<p>My response headers say HTTP/1.0 even though the request was HTTP/1.1.  Maybe that has something to do with this.  In my fix below I did not change the HTTP/1.0.</p>
<p>I noticed that there was no Content-Length in any of the headers, but I thought maybe curl was just leaving it out, or that it didn&#8217;t matter.  The download of cdafqzip worked with no Content-Length.  And, all of my non-download pages displayed on browsers with no Content-Length.</p>
<p>Then I noticed one of my other pages <i>did</i> have Content-Length and I researched a little about how that&#8217;s produced in WSGI.</p>
<p>For Python people: the fix that worked for me was to have my WSGI app() function return a list with one string in it.  Not a string, not a list of more than one string.  All three methods produce pages my browsers can show, but only ["like this\n"] produces Content-Length.</p>
<p>And that&#8217;s it.  All my downloads work now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Android and the HTTP download file headers von Sii Cockerill</title>
		<link>http://www.digiblog.de/2011/04/android-and-the-download-file-headers/#comment-14328</link>
		<dc:creator>Sii Cockerill</dc:creator>
		<pubDate>Wed, 30 Jan 2013 15:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=740#comment-14328</guid>
		<description><![CDATA[Hi Jörg,

I have a Nexus 7 and have a problem with the first Download Test link. The file downloads &#039;successfully&#039;, but doesn&#039;t immediately offer to open the file. The PDF appears in my Downloads but when I click on it, it reports &quot;Can&#039;t open file&quot;.

I&#039;m using Chrome. It seems to work OK in Opera Mobile (but that&#039;s not the default or more popular browser).

If you have any ideas, I&#039;d really appreciate you sharing them.

Thanks,
Sii]]></description>
		<content:encoded><![CDATA[<p>Hi Jörg,</p>
<p>I have a Nexus 7 and have a problem with the first Download Test link. The file downloads &#8216;successfully&#8217;, but doesn&#8217;t immediately offer to open the file. The PDF appears in my Downloads but when I click on it, it reports &#8220;Can&#8217;t open file&#8221;.</p>
<p>I&#8217;m using Chrome. It seems to work OK in Opera Mobile (but that&#8217;s not the default or more popular browser).</p>
<p>If you have any ideas, I&#8217;d really appreciate you sharing them.</p>
<p>Thanks,<br />
Sii</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Android and the HTTP download file headers von Jörg Wagner</title>
		<link>http://www.digiblog.de/2011/04/android-and-the-download-file-headers/#comment-12115</link>
		<dc:creator>Jörg Wagner</dc:creator>
		<pubDate>Mon, 14 Jan 2013 09:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=740#comment-12115</guid>
		<description><![CDATA[Hi Hatto, 
your assumption that the server gets all POST parameters correctly is only partially right.
I am quite sure that for each POST download request you will find TWO requests in your logs: One with all the POST parameters coming in correctly and one without any parameters (just using the bare URL of your request but not POST headers). 
The reason is that the stock browser processes the POST request correctly, recognizes that the result is a downloadable file, hands over the request to the download manager, and the DM fires a second request with only the URL but no POST headers included.]]></description>
		<content:encoded><![CDATA[<p>Hi Hatto,<br />
your assumption that the server gets all POST parameters correctly is only partially right.<br />
I am quite sure that for each POST download request you will find TWO requests in your logs: One with all the POST parameters coming in correctly and one without any parameters (just using the bare URL of your request but not POST headers).<br />
The reason is that the stock browser processes the POST request correctly, recognizes that the result is a downloadable file, hands over the request to the download manager, and the DM fires a second request with only the URL but no POST headers included.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Android and the HTTP download file headers von Hatto</title>
		<link>http://www.digiblog.de/2011/04/android-and-the-download-file-headers/#comment-12052</link>
		<dc:creator>Hatto</dc:creator>
		<pubDate>Sun, 13 Jan 2013 16:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=740#comment-12052</guid>
		<description><![CDATA[Thanks for this information - iframe really is an issue: setting target=&quot;_top&quot; and method=&quot;GET&quot; solved the problem.
By the way: If it does not work because of method=&quot;POST&quot; (or wrong target) the problem occurs &lt;em&gt;after&lt;/em&gt; (the start of ?) the transmission of the downloaded file from the server to the client, i.e. the server gets all POST params correctly but the client does not deal correctly with its (correct) answer. (Android 2.3.5 on HTC Desire HD with Telekom Deutschland Branding).]]></description>
		<content:encoded><![CDATA[<p>Thanks for this information &#8211; iframe really is an issue: setting target=&#8221;_top&#8221; and method=&#8221;GET&#8221; solved the problem.<br />
By the way: If it does not work because of method=&#8221;POST&#8221; (or wrong target) the problem occurs <em>after</em> (the start of ?) the transmission of the downloaded file from the server to the client, i.e. the server gets all POST params correctly but the client does not deal correctly with its (correct) answer. (Android 2.3.5 on HTC Desire HD with Telekom Deutschland Branding).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Up-to-date color profiles for Euroscale printing von Jörg Wagner</title>
		<link>http://www.digiblog.de/2010/07/up-to-date-fogra-profiles-for-euroscale-printing/#comment-11303</link>
		<dc:creator>Jörg Wagner</dc:creator>
		<pubDate>Fri, 04 Jan 2013 16:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=398#comment-11303</guid>
		<description><![CDATA[Hi Richard,
interesting effect. I cannot reproduce this on my system (CS6 on Windows 7). I honestly do not understand how a profile can change CMYK color definitions within a source document (unless you are working in another color system than the one you are measuring in, e.g. you define your colors in CMYK but your document is set to internally use RGB, so the profile is involved in color conversions). Are you sure this is not the result of wrong document settings or a bad program setup?]]></description>
		<content:encoded><![CDATA[<p>Hi Richard,<br />
interesting effect. I cannot reproduce this on my system (CS6 on Windows 7). I honestly do not understand how a profile can change CMYK color definitions within a source document (unless you are working in another color system than the one you are measuring in, e.g. you define your colors in CMYK but your document is set to internally use RGB, so the profile is involved in color conversions). Are you sure this is not the result of wrong document settings or a bad program setup?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Up-to-date color profiles for Euroscale printing von Richard Yorke</title>
		<link>http://www.digiblog.de/2010/07/up-to-date-fogra-profiles-for-euroscale-printing/#comment-11299</link>
		<dc:creator>Richard Yorke</dc:creator>
		<pubDate>Fri, 04 Jan 2013 15:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://digiblog.de/?p=398#comment-11299</guid>
		<description><![CDATA[Hi, 

I use the earlier version of this colour setting &#039;ISO Coated v2 (ECI)&#039;, as we found that the &#039;ISO Coated v2 300% (ECI)&#039; version really messes up global and spot colours in Illustrator CS4 to CS6 running on Apple OSX. For instance: you save a document with Black as CMYK 0,0,0,100, when you re-open that document and take a look at the Black, it has changed to a mess of CMYK 67,74,61,95... Obviously no good for printing! Then imagine this happening to ALL of the spot or global colours in your colour swatch - horrible.

I hope that this helps - and that ECI sort it out. I wrote to them about it about 2 years ago and got no response. 

Richard]]></description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I use the earlier version of this colour setting &#8216;ISO Coated v2 (ECI)&#8217;, as we found that the &#8216;ISO Coated v2 300% (ECI)&#8217; version really messes up global and spot colours in Illustrator CS4 to CS6 running on Apple OSX. For instance: you save a document with Black as CMYK 0,0,0,100, when you re-open that document and take a look at the Black, it has changed to a mess of CMYK 67,74,61,95&#8230; Obviously no good for printing! Then imagine this happening to ALL of the spot or global colours in your colour swatch &#8211; horrible.</p>
<p>I hope that this helps &#8211; and that ECI sort it out. I wrote to them about it about 2 years ago and got no response. </p>
<p>Richard</p>
]]></content:encoded>
	</item>
</channel>
</rss>
