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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,044 Views
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?

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

911 Views
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 Kudos
Reply

911 Views
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 Kudos
Reply