I am attempting to make a GET request using drupal_http_request()
. A basic request works as expected but I need to include extra data. The example provided to me uses curl and the -G --data-urlencode option as shown below. What is the correct way to implement this type of request using drupal_http_request()?
curl -X GET \
-H "Header-Example: Header Data" \
-G \
--data-urlencode 'include=gator' \
https://example.com/1/endpoint