Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Library to parse HTTP Responses with Arduino [closed]

I'm looking for a library to parse a web HTTP response with Arduino separating, for example, the HTTP Headers from the content.

Reading the various sketches out there, the most advanced tool to parse a stream of data is TextFinder.

Are you aware of any other libraries that could help in parsing an HTTP Response?

like image 506
systempuntoout Avatar asked Aug 15 '11 22:08

systempuntoout


People also ask

How to use this library in Arduino?

Powerful and easy to use. Server, Client and Parser functionality This library is compatible with all architectures so you should be able to use it on all the Arduino boards. To use this library, open the Library Manager in the Arduino IDE and install it from there.

Is it possible to Port llhttp to Arduino platform?

Porting of llhttp to Arduino platform is under consideration. This is a parser for HTTP messages written in C. Based on and keeps up-to-date with http-parser by Node.js contributors, it supports AVR SoC as well. It parses both requests and responses. The parser is designed to be used in performance HTTP in performance HTTP applications.

What is the use of the HTTP parser?

It parses both requests and responses. The parser is designed to be used in performance HTTP in performance HTTP applications. It does not make any syscalls nor allocations, it does not buffer data, it can be interrupted at anytime.

How long does it take to parse a GET HTTP request?

I send a GET http request to a server and get following data back. with the following code I get the header info and the body. this thakes 60 - 70ms to parse.


1 Answers

There are two main alternatives:

  1. https://github.com/amcewen/HttpClient
  2. https://github.com/interactive-matter/HTTPClient

The main differences I have seen so far:

  • #1 has zero documentation, #2 has quite decent documentation
  • #1 requires you to construct your URLs manually; #2 lets you supply e.g. an array of parameter name=value pairs
  • #2 requires you to provide the Arduino's IP address and the target URL's IP address, #1 uses Arduino 1.0's built-in DHCP and DNS lookup libraries
like image 130
Alex Dean Avatar answered Oct 18 '22 09:10

Alex Dean