Add content type to header C

Add content type to header C,Online Learing with Entertainment, online learning free, Online Quiz, Current Affairs,status in hindi, status in emglish,status

Every part in a MIME message should include a Content-Type header field

What is Constructors in java

There are following types of Add content type to header C below:-

=> Content-Type: text/html; charset=ISO-8859-1
=> Content-Type: image/png
=> Content-Type: application/x-gzip
=> Content-Type: application/pdf

What is Checked Exception in java

Practical Example is below:

mime.put_ContentType("text/plain");    mime.put_Charset("utf-8");    //  The Content-Type header field contains this,Add content type to header C:    //      Content-Type: text/plain; charset=utf-8    std::cout << mime.getEntireHead() << "\r\n";    std::cout << "-" << "\r\n";    mime.SetHeaderField("Content-Type","image/jpeg; name=\"monty.jpg\"");    //  The Content-Type header field now contains this:    //      Content-Type: image/jpeg; name="monty.jpg"    std::cout << mime.getEntireHead() << "\r\n";    std::cout << "-" << "\r\n";    //  How the properties have been updated:    std::cout << "ContentType property: " << mime.contentType() << "\r\n";    std::cout << "Charset property: " << mime.charset() << "\r\n";    std::cout << "Name property: " << mime.name() << "\r\n";    std::cout << "-" << "\r\n";    //  How To change a particular attribute value, set the property.    mime.put_Name("technosuffer.jpg");    std::cout << mime.getEntireHead() << "\r\n";    std::cout << "-" << "\r\n";    //  How to To remove an attribute value from the Content-Type header,    //  To set the property to an empty string.    mime.put_Name("");    std::cout << mime.getEntireHead() << "\r\n";    std::cout << "-" << "\r\n";    }

Post a Comment

Previous Post Next Post