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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,045件の閲覧回数
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 返答(返信)

912件の閲覧回数
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 件の賞賛
返信

912件の閲覧回数
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 件の賞賛
返信