This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI-RTOS
Hello,
I'm trying to find an example of how to do an HTTPS POST/GET using a proxy server. From what I understand, I'll need to use "HTTPStd_CONNECT" first and then depending on the proxy server response, I'll be able to do the actual HTTPS POST/GET?
Any example code or knowledge of how this can be done would be awesome.
Thanks,
Subhash
Hello Subhash,
There is a HTTP Client GET example included in TI-RTOS, unfortunately it's not included for your device so you would need to do a little bit of porting to get it working. It can be found under the TM4C129ENCPDT device.
You may find this other thread helpful when porting it:
https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/p/615130/2265368
Thanks,
Gerardo
I already have a working HTTPS POST and GET, but I'm not sure of how to use that with a proxy server. Are you saying there's an HTTP example that shows how do a HTTP GET with a proxy server?
I'm trying to figure out how to do something like: HTTPCli_sendRequest(&cli, HTTPStd_CONNECT, REQUEST_URI, false);
My normal HTTP GET starts like this:
1. HTTPCli_connect(&cli, server_address, 0, ¶ms);
2. HTTPCli_sendRequest(&cli, HTTPStd_GET, server_uri, false);
3. get response status & response fields/body, etc..
But to use a proxy server it might be something like this:
1. HTTPCli_connect(&cli, proxy_server_address, 0, ¶ms);
2. HTTPCli_sendRequest(&cli, HTTPStd_CONNECT, server_address, false);
3. get response status & response fields/body, etc.. ???
I'm just not sure how to do that properly or correctly or if I'm on the right path. I haven't seen any examples that show how to use the HTTPStd_CONNECT parameter in the sendRequest method.
Not a problem. I thought it would be hard to find an example.
I have not tried it myself yet but will report back here if I get time to try it out.
Thank you!