Hi,
I'm currently interfacing to an external module which has a pre-defined protocol that I'm trying to comply with. The module uses both GET and POST messages to the same cgi file, for example;
Get example; GET http://<server>/<filename>.cgi?req=<parampath>
Post example; POST http://<server>/<filename>.cgi\r\n content-Length:XX\r\n \r\n <paramPath>=<value>\r\n
I can successfully capture and action the GET messages sent by the external module via the cgi_process_var() . I don't however seem to be able to capture and action the POST messages via the cgi_process_data(). The cgi_process_data() never seems to be called on receipt of the POST message.
Is it possible to do both methods via the same cgi file?
I've tried to look at the cgi script language to see if there is anything I should be including in my cgi file but i cannot see anything other then possibly including a <FORM> element?(http://www.keil.com/support/man/docs/rlarm/rlarm_tn_http_scriptlang.htm)
My cgi file currently only contains a call to the cgi_func() via the simple script "c S E %s" to allow me to send back a custom strings to the module.
Apologies in advance for the gaps in my knowledge on this subject.
Thanks
Tom