为什么MultiPart正文部分中不允许使用Content-Type标头?

时间:2016-02-12 14:26:29

标签: okhttp okhttp3

我试图破解我的方式(我无法控制服务器并且必须添加它),但我很想知道如果有人知道的原因。 谢谢。 (它在line 233)。

1 个答案:

答案 0 :(得分:0)

Instead of providing the content type as a header, you need to provide it when building the <div id="container"> <label for="dropdown" class="dropdown">Show Menu</label> <input type="checkbox" id="dropdown" role="button"> <div id="menu"> <ul> <li><a href="#">Home</a></li> <li> <a href="#">Massage & Spa</a> <ul class="dropdown-content"> <li><a href="#">Massage Treatment</a></li> <li><a href="#">Balancing Energies</a></li> <li><a href="#">Signature Massage Treatment</a></li> <li><a href="#">Thai Massage</a></li> <li><a href="#">Signature Spa Treatment</a></li> <li><a href="#">List of Treatments & Rates</a></li> </ul> </li> <li><a href="#">Well Being</a></li> <li> <a href="#">About Us</a> <ul class="dropdown-content"> <li><a href="#">Richard Davenport</a></li> <li><a href="#">Katrine Dannieu</a></li> <li><a href="#">Beth Drake</a></li> <li><a href="#">Daniel</a></li> <li><a href="#">Ciciely</a></li> <li><a href="#">Ish</a></li> <li><a href="#">Elizabeth</a></li> <li><a href="#">Tyler</a></li> <li><a href="#">Julia</a></li> <li><a href="#">Asley</a></li> <li><a href="#">Sandra</a></li> </ul> </li> <li> <a href="#">To Know</a> <ul class="dropdown-content"> <li><a href="#">How to prepare for your massage</a></li> <li><a href="#">The right pressure during your Massage</a></li> <li><a href="#">How often should you get a massage?</a></li> <li><a href="#">Here is why you should book your next appointment ASAP</a></li> <li><a href="#">What is Rieki Who can learn</a></li> <li><a href="#">Dr. Oz and the healing power of Reiki</a></li> </ul> </li> <li><a href="#">Location</a></li><li> <a href="#">Contact</a></li><li> <a href="#">Calendar</a></li><li> <a href="#">Events</a></li><li> <a href="#">Links</a></li> </ul> </div> </div><!-----End of container-----> instance.