🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10346

Re: MySql, C y archivos .rtf.

#10346
From: Ignacio Arenaza
Date: Sun, 10 Mar 2002 11:07
31 lines
2061 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Artur" == Artur Guillamet Sabat� <aguillam@pie.xtec.es> writes:

    Artur> codigo .rtf) no se como decirle cual es el nombre del
    Artur> fichero, para que el navegador del cliente pueda
    Artur> interpretarlo como un documento .rtf y al descargarlo me

En tu CGI necesitas generar una cabecera del tipo Content-Disposition,
similar a estas:

        Content-Type: application/rtf
        Content-Disposition: attachment; filename="nombrefichero.rtf"

y despues enviarle el documento rtf en cuestion.

Saludos. I�aki.

- -- 
  Get PGP/GPG Keys at  http://www.escomposlinux.org/iarenaza/pgpkey.html
  I use free software / Yo uso software libre

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt and GPG

iD8DBQE8iz5UZXLnGT1HLgcRAi8IAJ42pQtBazhwyM5seog00owN/yCj7wCdGtKN
Oh0N+Pn3CmIQEItFMXKeJBY=
=zLoE
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87g038isve.fsf@eb2ebu.ampr.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!eb2ebu.ampr.org!not-for-mail
References: <a5vsv9$7i4$1@noucreus-atm.cesca.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,ece6668919aabf28
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-10 03:51:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!eb2ebu.ampr.org!not-for-mail
From: Ignacio Arenaza <iarenaza@eb2ebu.ampr.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: MySql, C y archivos .rtf.
Date: 10 Mar 2002 12:07:01 +0100
Organization: Servidor NNTP de eb2ebu.ampr.org
Lines: 31
Message-ID: <87g038isve.fsf@eb2ebu.ampr.org>
References: <a5vsv9$7i4$1@noucreus-atm.cesca.es>
NNTP-Posting-Host: 62-37-112-19.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.wanadoo.es 1015760309 23711 62.37.112.19 (10 Mar 2002 11:38:29 GMT)
X-Complaints-To: usenet@wanadoo.es
NNTP-Posting-Date: Sun, 10 Mar 2002 11:38:29 +0000 (UTC)
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7