1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 <2024> 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 <2024> 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: HTTP PUT Request - StreamDevice |
From: | Kyle Hesse via Tech-talk <tech-talk at aps.anl.gov> |
To: | Zimoch Dirk <dirk.zimoch at psi.ch>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Fri, 13 Sep 2024 14:38:18 +0000 |
Hi Dirk,
I was able to get it working. Thank you for all of your suggestions. Adding additional header information ended up being the solution. out 'PUT /io/net/hostname/value.json HTTP/1.1\r\nHost: http://129.57.203.137/io/net/hostname/value.json\r\nContent-Type: application/json\r\nContent-Length: 16\r\n\r\n"injivcont1"'; in '%*s'; Omitting content length would result in the hostname not being set. Any recommendations on how can I dynamically calculate the Content-Length header value for variable-length payloads in StreamDevice for PUT requests? Appreciate your help, Kyle From: Zimoch Dirk <dirk.zimoch at psi.ch>
Sent: Thursday, September 12, 2024 9:18 AM To: Kyle Hesse <hesse at jlab.org>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: [EXTERNAL] Re: HTTP PUT Request - StreamDevice On Thu, 2024-09-12 at 12:31 +0000, Kyle Hesse wrote:
> I am getting a response of HTTP/1.1 200 OK If you are getting a response, you should add a matching 'in' command to your protocol. And then you may not need to disconnect. Still use the http option in drvAsynIPPortConfigure. |