Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

µC/HTTP-client supports the addition of HTTP header field to requests and the parsing of header fields received in responses. For header fields in requests, two methods are offered to add them into a request. First, a table with all the header fields to include in the request can be passed to the µC/HTTP-client stack; second, a hook function can be set up. The hook function will be called by the µC/HTTP-client stack to add a header field at the moment where the request is constructed. The hook function will be called until it return a "I'm Done" value to indicate that all header fields have been passed. For the header fields in responses, a hook function can be set up to allow the application to recover the data in the received header fields.

See Section Header Field Configuration to enable the Header Field feature. 

See Section Header fields  for examples on how to add Header Fields to a HTTP request with the use of a table or a hook function.

See Section Response Header Hook for an example of a hook function to recover header fields received in an HTTP response.