|
From: | Linde, A.E. |
Subject: | Re: [Myexperiment-discuss] Send_data location header |
Date: | Sun, 23 Nov 2008 17:33:14 +0000 |
Nuts: will try again with 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}")
T.
On 16/11/2008 12:59, "Linde, A.E." <address@hidden> wrote:
> 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
_______________________________________________
Myexperiment-discuss mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/myexperiment-discuss
[Prev in Thread] | Current Thread | [Next in Thread] |