I'm working on a module to integrate with the Piryx API, and per the OAuth documentation, I should be redirected to an external page where the user can allow access to my application. The problem is that I'm using drupal_http_request():
$response = drupal_http_request($url, $headers, 'GET', $data);
to get the data, and the page markup is returned in $response['data'] instead of redirecting me to the external page (if I put the URL in my browser, it brings up the page fine). Is there something I can do to redirect to the external URL so the user can allow access, or do I just somehow need to use the markup to display it in my site?