myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3014] branches/showcase48/app/controllers/resear


From: noreply
Subject: [myexperiment-hackers] [3014] branches/showcase48/app/controllers/research_objects_controller.rb: modified RO request to follow redirections
Date: Wed, 6 Jun 2012 06:45:30 +0000 (UTC)

Revision
3014
Author
dgc
Date
2012-06-06 06:45:29 +0000 (Wed, 06 Jun 2012)

Log Message

modified RO request to follow redirections

Modified Paths

Diff

Modified: branches/showcase48/app/controllers/research_objects_controller.rb (3013 => 3014)


--- branches/showcase48/app/controllers/research_objects_controller.rb	2012-06-05 17:41:36 UTC (rev 3013)
+++ branches/showcase48/app/controllers/research_objects_controller.rb	2012-06-06 06:45:29 UTC (rev 3014)
@@ -83,7 +83,11 @@
 
     if url
       begin
-        curl = Curl::Easy.http_get(url)
+        curl = Curl::Easy.new(url)
+        
+        curl.follow_location = true
+
+        curl.http_get
         throw Exception if curl.response_code != 200
         research_object = curl.body_str
       rescue

reply via email to

[Prev in Thread] Current Thread [Next in Thread]