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, 23 Nov 2008 17:33:14 +0000

> 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?

If no-one has any ideas about fixing this, can you point me to best online forum for asking questions?

Thanks,
Tony.


On 16/11/2008 13:06, "Linde, A.E." <address@hidden> wrote:

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



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

reply via email to

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