Tool/software: TI C/C++ Compiler
Hi,
Currently i am able to send GET and POST request on my target server. I am working on setting the proxy server.
Here is what I have done so far.
1. Made up a proxy server that is working ok if we setup the proxy setting in internet option and access the target server from a web browser
2. set up the proxy server as
// these lines are called at start of my ethernet task.
struct sockaddr_in paddr;
paddr.sin_family = AF_INET;
paddr.sin_port = htons(80); // proxy server is using port 80
paddr.sin_addr.s_addr = sl_Htonl(SL_IPV4_VAL(a,b,c,d));// for proxy server ip = a.b.c.d
HTTPCli_setProxy((struct sockaddr *)&paddr);
I hoped it would do the work. But it is failing at httpProxyTunnel function. i.e.
at line
host = getRequestFieldValue(cli, HTTPStd_FIELD_NAME_HOST);
it gets a null.
I added the host and fixed this issue. Now it is stuck in following line of "httpProxyTunnel" function
ret = getStatus(cli); // inside this function at below line
status = skipLine(cli); // inside this function it never gets the newline or '\n'
while (c != '\n') { // stuck in this loop.
it will be very helpful if someone can help and guide what is going on wrong here. Thanks,