myexperiment-discuss
[Top][All Lists]
Advanced

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

Re: [Myexperiment-discuss] Send_data location header


From: Linde, A.E.
Subject: Re: [Myexperiment-discuss] Send_data location header
Date: Sun, 16 Nov 2008 13:06: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





reply via email to

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