Hello everyone,
We are currently working on a Web server on a Cortex-M7 ARM to transmit SOAP messages via HTTP and CGI. For this, we would need to recover the request's HTTP Header and more specifically to access the URL of the CGI script used. According to the CGI script called, SOAP messages will be treated differently.
Example of the HTTP header used:
POST 63.83.88.40/BrukSoap.cgi HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "">ws.bruker.com/.../GetMode" Content-Length: 331 Host: 63.83.88.40:80 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
POST http://63.83.88.40/soap.cgi HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "">brukerws/.../GetBisList" Content-Length: 219 Host: 63.83.88.40 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Thanks in advances,
Best regards
Yes I wonder if he explains a way, a function to recover the URL of the HTTP header. After reading all the doc I did not find anything
What "doc" is that?
You haven't said what you are using!
I'm sorry, "doc" is an acronym in French for "documentation". I have read the whole link below www.keil.com/.../group__ws__user__api.html
I use STM32F769I card, and I develop a web server :
Versions: HTTP_Server_FS.c: v7.2.0 HTTP_Server_CGI.c: v7.0.0 Net_Config.c: v7.7.0 (variant IPv4 / IPv6 Release) Net_Config_HTTP_Server.c: v7.0.0"
I summarize my problem: I need to retrieve the URL resource from the HTTP request to retrieve the name of the CGI script used, in the function netCGI_ProcessData