Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6181787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:05:14+00:00 2026-05-24T01:05:14+00:00

How do I read response headers from a response using libCurl in C? The

  • 0

How do I read response headers from a response using libCurl in C?

The MAN page says this:

size_t function( void *ptr, size_t size, size_t nmemb, void *stream)

What is the stream here? Do I read headers from stream or from ptr?

I am currently trying to read code from ptr and passing a struct for stream.

And the only response header is see is http/1. 0 ok. Nothing else and I am pretty sure the response has more headers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:05:15+00:00Added an answer on May 24, 2026 at 1:05 am

    The last parameter isn’t a stream, it’s a void* to your userdata if used. The data to read is in *ptr, and this function will be called once for each header received.

    (The last parameter is often used to point back to an C++ object instance through a static method using the C-style API…)

    One example here:

    http://permalink.gmane.org/gmane.comp.web.curl.library/28803

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I read the response headers returned from a PyCurl request?
I am trying to read out some values from response headers from a Shoutcast
Iam trying to read a response from a CGI page from Java where I
I'm trying to read the response from a server using a socket and the
I am using python's beautiful stone soup to extract data from this web page
I am trying to read ASCII text response from a tcp open streaming socket
I am trying to read in a string from a C# Response.Write(string example) into
I'm having trouble reading a chunked response when using a StreamReader to read the
My code fetches CSV data from a PHP page using httplib. When I open
So I have this program that fetches a page using a short link (I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.