Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the message body without the headers in phr_parse_response() #31

Open
roniemartinez opened this issue Jan 27, 2017 · 6 comments

Comments

@roniemartinez
Copy link

roniemartinez commented Jan 27, 2017

When calling the phr_parse_response(), the msg pointer contains data starting from the status message. How do you get the message body without the headers?

Thanks.

@Asmod4n
Copy link

Asmod4n commented Jan 28, 2017

the return value indicates where the body starts

@roniemartinez
Copy link
Author

It doesn't seem to be indicated in the code comments.

@ghost
Copy link

ghost commented May 18, 2017

Same issue. Please tell me how can calculate index of body start?

@Asmod4n
Copy link

Asmod4n commented May 18, 2017

The return value of the function is the start position of the body of your supplied pointer

@ghost
Copy link

ghost commented May 18, 2017

Thank you so much. You saved my day 😄

@iC00kScripts
Copy link

@ghost, can you please drop the sample code for extracting response code and body from a string using phr_parse_response(). Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants