myexperiment-discuss
[Top][All Lists]
Advanced

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

[Myexperiment-discuss] Send_data location header


From: Linde, A.E.
Subject: [Myexperiment-discuss] Send_data location header
Date: Sun, 16 Nov 2008 12:59:25 +0000

In my proxy controller (invoked from js) I have the code:

    response = Net::HTTP.start(uri.host, uri.port) { |http|      http.request_post(uri.path, claim, { 'Content-type' => 'text/turtle' })    }    send_data(response.body, :type => response['content-type'],        :status => "#{response.code} #{response.message}")
But also want to return the response['location'] header field: any idea how I can do that as send_data options do not include that field?

Thanks,
Tony.

--
Tony Linde
Project Manager
Department of Physics & Astronomy
University of Leicester

reply via email to

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