hello! I'm looking to build a table that involves ...
# general
a
hello! I'm looking to build a table that involves making a HTTP request. It looks like the
osquery/remote/request.h
and
osquery/remote/http_client.h
contains the classes for making HTTP requests. Does
Client()
have support for setting custom HTTP headers?
e
Hi! But osquery already provides similar functionality. Take a look at https://osquery.io/schema/3.3.0#curl table. It may cover your needs.
a
I'm looking at building a metadata schema for Google Cloud similar to the one for AWS EC2. It would involve making a HTTP request under-the-hood
m
we recently did something similar for azure that you might be able to use for reference 🙂 https://github.com/facebook/osquery/pull/5434
👍 1
a
that's awesome! thanks a lot!