Article ID: 182315
Article Last Modified on 3/16/2005
Always ask before opening this type of file
#include <stdio.h>
int main()
{
char szContentType[]="Content-Type: bad/type\r\nContent-Disposition:"
" attachment; filename=name.xxx\r\n\r\n";
printf(szContentType);
printf("This is a test.");
return 0;
}
Do not include a path in the file name parameter. Also, do not enclose it
in quotes.Additional query words: kbdsi
Keywords: kbbug kbfix kbfaq KB182315