<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RTCS HTTP Server: How can I set the file name of a dynamically generated (CGI) file in MQX 4.1? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328735#M10483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, but I don't like the idea of using meta tags for this purpose - I will probably try it at some point and see but further googling doesn't paint a good picture for the portability (or even functionality) of this approach. Most people who ask this question are told to use the actual HTTP headers. See here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/3802510/force-to-open-save-as-popup-open-at-text-link-click-for-pdf-in-html" title="http://stackoverflow.com/questions/3802510/force-to-open-save-as-popup-open-at-text-link-click-for-pdf-in-html"&gt;Force to open "Save As..." popup open at text link click for pdf in HTML - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/11770712/content-disposition-or-others-in-http-equiv" title="http://stackoverflow.com/questions/11770712/content-disposition-or-others-in-http-equiv"&gt;html - Content-disposition or others in http-equiv? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way I could get a feature request in for this? Maybe if enough people want it, it may happen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, I put an "extra header" string pointer into the response struct and modified the code that builds the HTTP header accordingly. It ends up being 6 extra lines of code in 4 files which isn't too bad IMO (for a quick hack, anyway). The server code is pretty straightforward in those places. Hopefully I don't need to modify other stuff like this, could get messy...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only scary part of this was not knowing 100% if the size of the response struct was hardcoded anywhere (which could break things pretty badly)... I'm choosing to assume that such code won't pass any review at Freescale, so that shouldn't be a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2014 14:57:45 GMT</pubDate>
    <dc:creator>dmitriyc</dc:creator>
    <dc:date>2014-12-08T14:57:45Z</dc:date>
    <item>
      <title>RTCS HTTP Server: How can I set the file name of a dynamically generated (CGI) file in MQX 4.1?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328733#M10481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am generating a file for download using a CGI function. I found that you can set the file name of the download by modifying the response header. See:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blog.httpwatch.com/2010/03/24/four-tips-for-setting-up-http-file-downloads/" title="http://blog.httpwatch.com/2010/03/24/four-tips-for-setting-up-http-file-downloads/"&gt;Four Tips for Setting up HTTP File Downloads | HttpWatch Blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, according to this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/332428"&gt;MQX 4.1 HTTPSRV: How to modify the reponse header?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can no longer manually modify the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking of modifying he HTTP server code if worst comes to worst, but is there a cleaner way of achieving what I want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328733#M10481</guid>
      <dc:creator>dmitriyc</dc:creator>
      <dc:date>2014-12-05T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS HTTP Server: How can I set the file name of a dynamically generated (CGI) file in MQX 4.1?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328734#M10482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly as in thread you mentioned you can use HTML tag &amp;lt;meta http-equiv&amp;gt; see:&amp;nbsp; &lt;A href="http://www.metatags.info/meta_http_equiv_content_disposition" title="http://www.metatags.info/meta_http_equiv_content_disposition"&gt;how to use | Instructions how to use c - meta tags seo search engines&lt;/A&gt; for further information. In your case it would be something like: &lt;SPAN style="color: #000000; font-family: monospace; font-size: 11px; text-align: justify;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; font-size: 11px; text-align: justify; color: #993366;"&gt;&lt;SPAN style="color: #800000;"&gt;meta&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: 11px; text-align: justify;"&gt;name="&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; font-size: 11px; text-align: justify; color: #000080;"&gt;content-disposition&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; font-size: 11px; text-align: justify;"&gt;" content="attachement; filename=myfilename.ext"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Karel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 15:43:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328734#M10482</guid>
      <dc:creator>karelm_</dc:creator>
      <dc:date>2014-12-07T15:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS HTTP Server: How can I set the file name of a dynamically generated (CGI) file in MQX 4.1?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328735#M10483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, but I don't like the idea of using meta tags for this purpose - I will probably try it at some point and see but further googling doesn't paint a good picture for the portability (or even functionality) of this approach. Most people who ask this question are told to use the actual HTTP headers. See here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/3802510/force-to-open-save-as-popup-open-at-text-link-click-for-pdf-in-html" title="http://stackoverflow.com/questions/3802510/force-to-open-save-as-popup-open-at-text-link-click-for-pdf-in-html"&gt;Force to open "Save As..." popup open at text link click for pdf in HTML - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/11770712/content-disposition-or-others-in-http-equiv" title="http://stackoverflow.com/questions/11770712/content-disposition-or-others-in-http-equiv"&gt;html - Content-disposition or others in http-equiv? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way I could get a feature request in for this? Maybe if enough people want it, it may happen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, I put an "extra header" string pointer into the response struct and modified the code that builds the HTTP header accordingly. It ends up being 6 extra lines of code in 4 files which isn't too bad IMO (for a quick hack, anyway). The server code is pretty straightforward in those places. Hopefully I don't need to modify other stuff like this, could get messy...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only scary part of this was not knowing 100% if the size of the response struct was hardcoded anywhere (which could break things pretty badly)... I'm choosing to assume that such code won't pass any review at Freescale, so that shouldn't be a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 14:57:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328735#M10483</guid>
      <dc:creator>dmitriyc</dc:creator>
      <dc:date>2014-12-08T14:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS HTTP Server: How can I set the file name of a dynamically generated (CGI) file in MQX 4.1?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328736#M10484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dmitriy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I will create a task in our ticket system to allow custom header fields in CGI. As you mentioned it should not be that hard to implement, but it involves change of API (not so good). &lt;/SPAN&gt;I will see what I can do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Karel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 08:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328736#M10484</guid>
      <dc:creator>karelm_</dc:creator>
      <dc:date>2014-12-09T08:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS HTTP Server: How can I set the file name of a dynamically generated (CGI) file in MQX 4.1?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328737#M10485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. I understand the difficulties with API changes. Hopefully it would be easier than usual because something similar was apparently there before, looks like it just got pruned during cleanup/refactoring. In any case, it doesn't hurt for me to ask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 20:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-HTTP-Server-How-can-I-set-the-file-name-of-a-dynamically/m-p/328737#M10485</guid>
      <dc:creator>dmitriyc</dc:creator>
      <dc:date>2014-12-09T20:41:17Z</dc:date>
    </item>
  </channel>
</rss>

