[development] Redirection issue with drupal_http_request

nan wich nan_wich at bellsouth.net
Sat Aug 14 21:28:12 UTC 2010

Yes, I have encountered this a few times. Apparently, it's not the Drupal is 
wrong, but the the redirector is wrong - the URL is always suppoed to be 
absolute. I have always had to handle my own redirect loop to get around this. 
It would be nice if Drupal recognized this as common practice.
Nancy E. Wichmann, PMP
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.


From: nitin gupta
I recently came across this issue when drupal_http_request reported error (-1002 
- missing schema) for the following URL:


This URL redirects twice. For the first time, it returns the location: 

with 302 code.

This URL when requested returns the Location: 

with 302 code.

As the drupal_http_request requests the location, a missing schema error is 
reported. Whereas the browser, and the following test site: 
http://www.rexswain.com/cgi-bin/httpview.cgi, correctly returns the content of 
the page.

Is drupal_http_request missing some recommended functionality? 

Nitin Kumar Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100814/9e849f62/attachment.html 

More information about the development mailing list