How do I integrate ability to write arbitrary headers in httpsrv?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How do I integrate ability to write arbitrary headers in httpsrv?

1,657 次查看
eugeneryabtsev
Contributor III

We want to be able to write arbitrary headers from both CGI and SSI routines under HTTPSRV. Currently, the header of most interest to us is "Content-Disposition:". I want to "download" from my device some named XML stuff (generated by SSI) and some named binary stuff (generated by CGI; the same CGI would accept the uploading of said binary stuff back into the device).

Can I do it out of the box or where should I put API extensions?

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,524 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Eugene,

unfortunately Freescale does not provide an example for the specific case you are describing. Actually this case involves HTML programming rather than Embedded C.

Hopefully someone else in community with HTML expertise could share his point of view. On the other hand there are many other HTML forums where you can seek for help.

Best regards,

Carlos

0 项奖励
回复

1,524 次查看
eugeneryabtsev
Contributor III

Not HTML. HTTP a bit.

I have since implemented the functionality, but I am not sure that I have put it where it should be by the design of HTTPSR. I not't think it's possible to do as an example like other examples with current HTTPSRV - I had to modify HTTPSRV source. Just thought you might have a better idea of how and where it should fit.

0 项奖励
回复