½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
javascript
PHP
ASP
CSS
mysql
HTML
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 23 | Á¶È¸¼ö 644 | µî·ÏÀÏ 2000-07-28 14:16:27

´Ð³×ÀÓ

vopos

À̸ÞÀÏ

vopos@happycgi.com

Á¦¸ñ

´äº¯: txtÈ­ÀÏ ´Ù¿î·Îµå
³»¿ë
[font size="2" color="#FF0000"]ÀÌ ±ÛÀº 2000-07-28, ¿ÀÈÄ 02:18 (KST)¿¡ ¸¶Áö¸·À¸·Î ¼öÁ¤µÇ¾ú½À´Ï´Ù.[/font][p]¾È³çÇϼ¼¿ä, HappyCGI ÆÀÀÇ °íÀç¿õÀÔ´Ï´Ù
Á¦°¡ C¸¦ ¸ð¸¥´Ù´Â °ÍºÎÅÍ ¸»¾¸µå¸®±¸¿ä, CÇÏ°í´Â °ü·ÃÀÌ ¾ø´Ù°í »ý°¢µÇ¾î¼­ ´äº¯µå¸³´Ï´Ù.

>qDecoder¸¦ ´Ù¿î¹Þ¾Æ »ç¿ëÇÏ°í ÀÖ½À´Ï´Ù.
>Áú¹®ÀÇ ³»¿ëÀº txtÈ­ÀÏ ´Ù¿î·ÎµåÀÔ´Ï´Ù.
>¾Æ·¡ ¼Ò½º¸¦ Àû¾îº¸°ÚÁö¸¸ ÇöÀç cgi¸¦ È£ÃâÇϸé
>´Ù¿î·Îµå âÀÌ ¶ßÁö¾Ê°í ´Ù¿î·Îµå ÇÏ·Á´Â
> txtÈ­ÀÏÀÇ ³»¿ëÀÌ È­¸éÀ¸·Î Ãâ·ÂµÇ³×¿ä.

MIME type¿¡ ´ëÇؼ­ Àá½Ã ¼³¸í µå·Á¾ß°Ú³×¿ä.

¼­¹ö¿Í ºê¶ó¿ìÁ®¿¡¼­´Â MIME type À̶õ°Ô Á¤ÀÇ°¡ µÇ¾îÀÖ½À´Ï´Ù. ½±°Ô ¸»Çϸé ƯÁ¤ ÆÄÀÏ¿¡ ´ëÇؼ­ ¼­¹ö¿Í ºê¶ó¿ìÁ®¿¡¼­ ¾î¶»°Ô ó¸®ÇÒÁö ¹Ì¸® ¾à¼ÓÀÌ µÇ¾îÀÖ´Ù´Â ¸»ÀÔ´Ï´Ù.
ºê¶ó¿ìÁ®¿¡¼­ *.txt ÆÄÀÏÀ̶õ°Ô È®ÀεǸé ÀÌ°Ç *.txt ÆÄÀÏÀ̱⠶§¹®¿¡ ¹Ù·Î È­¸é¿¡ Ãâ·ÂµÇµµ·Ï Á¤ÀÇ°¡ µÇ¾îÀÖ½À´Ï´Ù. ±×·¡¼­ ´Ù¿î·Îµå°¡ ¾ÈµÇ´Â °ÍÀÌÁÒ.


>´Ù¿î·Îµå âÀÌ ¶ß°Ô ÇÏ·Á¸é ¾î¶»°Ô
>ÇÏ¿©¾ß Çϳª¿ä?

µÎ°¡Áö ¹æ¹ýÀÌ Àְڴµ¥¿ä.
Çϳª´Â ºê¶ó¿ìÁ®¿¡¼­ *.txt ÆÄÀÏ¿¡ ´ëÇÑ MIME ¼³Á¤À» ¹Ù²ãÁÖ´Â °ÍÀÌ°í, ´Ù¸¥ Çϳª´Â *.txt ÆÄÀÏÀ» ´Ù¿î·Îµå ÇÏÁö¸»°í ´Ù¸¥ ÆÄÀÏ, ¿¹¸¦ µé¾î *.zip,À» Çغ¸½Ã¸é ´Ù¿î·Îµå µÉ°Ì´Ï´Ù.

¶Ç Çϳª°¡ ´õ Àֳ׿ä. ±×´ë·Î Ãâ·ÂÇØÁÖ°í »ç¿ëÀÚ°¡ Save As ¿É¼ÇÀ» Çϵµ·Ï ±â´Ù¸®´Â ¾ÈÀÏÇÑ ¹æ¹ýÀÌ.... ^^


>±×¸®°í ´Ù¿î·Îµå ½Ã Ŭ¶óÀ̾ðÆ®ÀÇ µð·ºÅ丮¸¦ ¼³Á¤ÇØÁÙ
>¼ö ÀÖ³ª¿ä? Áï µð·ºÅ丮 ¼±ÅðúÁ¤¾øÀÌ
>¹«Á¶°Ç ƯÁ¤ µð·ºÅ丮·Î Àü¼ÛÇÏ´Â°Ô °¡´ÉÇÒ°¡¿ä?

ÀÌ°Ô °¡´ÉÇÒ±î¿ä? °¡´ÉÇÏ´Ù¸é CGI ÇÁ·Î±×·¥¿¡¼­ »ç¿ëÀÚ OS¸¦ Á¦¾îÇؾßÇÑ´Ù´Â ¾ê±äµ¥... ±Û¼¼¿ä~


>²À ´äº¯ÁÖ¼¼¿ä! À̰Ͷ¼¹®¿¡ Àú ¾îÁ¦ ¿À´Ã
>¸Ó¸®¿¡ ±è³ª°Ô °í¹ÎÇß½À´Ï´Ù.
>±×·³ ÇູÇϼ¼¿ä!

´Ôµµ ÇູÇϼ¼¿ä, °¨»çÇÕ´Ï´Ù.


><tammy.txtÈ­ÀÏ>
>111|222|333
>444|5555|666
>
><html>
><a href=/cgi-bin/download.cgi?tammy.txt>tammy.txt</a>
>
><cgi>
>#include "qDecoder.h"
>
>main(argc,argv)
>int argc;
>char *argv[];
>{
>
> int rt;
>
> char *fpath="/tmp/";
>
> char filename[20];
>
>
> strcpy(filename,argv[1]);
>
> strcat(fpath,filename);
>
>
> rt = qDownload(fpath);
>
>
>
> if(rt == 0)
> printf("È­ÀÏÀÌ ¾ø½À´Ï´Ù"
");
>}
>
><°á°ú>
>Content-Disposition: attachment;filename="tammy.txt"
>Content-Transfer-Encoding: binaryConnection: close
>Content-Type: application/octet-stream
>Accept-Ranges: bytes
>Content-Length: 25
>
>111|222|333
>444|5555|666



Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û ÀÚ¹Ù¿¡ ´ëÇØ... 2000-07-28 13:32:36
´ÙÀ½°Ô½Ã±Û °øµ¿±¸¸Å ¼Ò½º ÀÖÀ¸¸é ¾Ë·Á ÁÖ¼¼¿ä 2000-07-28 16:06:31