EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20242025  2026  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  <20242025  2026 
<== Date ==> <== Thread ==>

Subject: Re: HTTP PUT Request - StreamDevice
From: Kyle Hesse via Tech-talk <[email protected]>
To: Zimoch Dirk <[email protected]>, "[email protected]" <[email protected]>
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 <[email protected]>
Sent: Thursday, September 12, 2024 9:18 AM
To: Kyle Hesse <[email protected]>; [email protected] <[email protected]>
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.




Replies:
Re: HTTP PUT Request - StreamDevice Zimoch Dirk via Tech-talk
References:
HTTP PUT Request - StreamDevice Kyle Hesse via Tech-talk
Re: HTTP PUT Request - StreamDevice Zimoch Dirk via Tech-talk
Re: HTTP PUT Request - StreamDevice Zimoch Dirk via Tech-talk
Re: HTTP PUT Request - StreamDevice Kyle Hesse via Tech-talk
Re: HTTP PUT Request - StreamDevice Zimoch Dirk via Tech-talk

Navigate by Date:
Prev: Re: HTTP PUT Request - StreamDevice Zimoch Dirk via Tech-talk
Next: Warning on Linux kernel < 2.6.31 (Re: SoftIoc with Warning: Unable to clear IP_MULTICAST_ALL on Ubunto on WSL) Shuei YAMADA via Tech-talk
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  <20242025  2026 
Navigate by Thread:
Prev: Re: HTTP PUT Request - StreamDevice Zimoch Dirk via Tech-talk
Next: Re: HTTP PUT Request - StreamDevice Zimoch Dirk via Tech-talk
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  <20242025  2026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·