R
Ram
Hello Everyone,
I have a query related to getting a http response via c program. The
idea is to get the body of a url and store it in an array. I am able
to do this but I get the entire HTTP response. I would just like to
get the body of my http response and not the headers. Is there are way
I can do this in c.
For e.g. I do gethostbyname("domain.com")
i have a char request[] ="GET ....."
Can anyone help me on how to get only the body and ignore the headers?
Is there a way I can pass some parameters in the GET message such that
i just get the response as the body?
Thanks in advance
--best
I have a query related to getting a http response via c program. The
idea is to get the body of a url and store it in an array. I am able
to do this but I get the entire HTTP response. I would just like to
get the body of my http response and not the headers. Is there are way
I can do this in c.
For e.g. I do gethostbyname("domain.com")
i have a char request[] ="GET ....."
Can anyone help me on how to get only the body and ignore the headers?
Is there a way I can pass some parameters in the GET message such that
i just get the response as the body?
Thanks in advance
--best