附件是乱码,要求content-type是application/pdf,那头信息的content-type(octet-stream)会影响到附件么?还有一个boundary下面为什么有两个content-type,如图
还有docx的附件,它的content-type也是application/msword么?
求解
附件是乱码,要求content-type是application/pdf,那头信息的content-type(octet-stream)会影响到附件么?还有一个boundary下面为什么有两个content-type,如图
还有docx的附件,它的content-type也是application/msword么?
求解
4 回答4.4k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
1 回答3k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
1 回答4.5k 阅读✓ 已解决
1 回答3.8k 阅读✓ 已解决
1 回答2.8k 阅读✓ 已解决
附件可以有好几个content-type
至于只想有一个content-type,在python里面有个mine ,有个Base 类型的!!!
而不是使用
这样会默认生成一个原始的content-type,在这个之后add_header('Content-Type'....)的话,就会有两个content-type