<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><p>I'm working on a module to integrate with the&nbsp;<a href="http://code.google.com/p/piryx-api/" rel="nofollow">Piryx API</a>, and per the&nbsp;<a href="http://dev.piryx.com/docs/oauth.html" rel="nofollow">OAuth documentation</a>, 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():</p><pre><code>$response = drupal_http_request($url, $headers, 'GET', $data);
</code></pre><p>to get the data, and the page markup is returned in $response-&gt;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?</p><div>I have a page callback function defined, but then the problem is getting the markup to the page function. &nbsp;drupal_goto() allows me to pass items in the URL, but this is a significant amount of markup that would create the URL from hell, so I don't want to do it that way. &nbsp;If put it in $GLOBALS in my form submit function, for some reason it isn't available when I get to my page callback.</div><div><br></div><div>This is my first foray into OAuth, so if there is a better way to do what I need to do, I'm all ears.</div><div><br></div><div>Thanks.</div><div><br></div><div>Steve</div></body></html>