Title
#general
a

Alex Stephen

02/14/2019, 2:43 AM
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

Evgeny Sidorov

02/14/2019, 5:40 AM
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

Alex Stephen

02/14/2019, 6:03 PM
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
mark

mark

02/14/2019, 6:46 PM
we recently did something similar for azure that you might be able to use for reference 🙂 https://github.com/facebook/osquery/pull/5434
a

Alex Stephen

02/14/2019, 8:25 PM
that's awesome! thanks a lot!