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

Subject: Re: HTTP PUT Request - StreamDevice
From: Zimoch Dirk via Tech-talk <tech-talk at aps.anl.gov>
To: "hesse at jlab.org" <hesse at jlab.org>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 11 Sep 2024 14:26:04 +0000
Hi Kyle,

I will have a look...

Dirk

On Wed, 2024-09-11 at 14:19 +0000, Kyle Hesse via Tech-talk wrote:
> Hello, 
> 
> I'm working with a Pyramid FX4 Device. I'd like to use HTTP requests to communicate using StreamDevice. I'm having success using GETs, however I'm running into issues with the PUTs. 
> 
> The programmer manual states to do the following: 
> 
> PUT /io/net/hostname.json HTTP/1.1
> 
> "New-Hostname"
> 
> Below I've listed my configuration as well as examples for the GET and PUT requests for getting and setting the hostname. 
> 
> Any help to properly form the HTTP PUT request would be greatly appreciated. 
> 
> Thanks, 
> 
> Kyle
> 
> 
> 
> Configuration: 
> 
> drvAsynIPPortConfigure("fx4", "129.57.203.137:80 HTTP", 0, 0, 0)
> 
> OutTerminator = CR LF CR LF;
> 
> PUT Request Example (Unsuccessful): 
> 
> set_host{
>     out 'PUT /io/net/hostname/value.json HTTP/1.1 "New-Hostname"';
> }
> 
> Get Request (Successful): 
> 
> hostname {
>         out "GET /io/net/hostname/value.json HTTP/1.1";
>                in "%*182c%[_a-zA-Z0-9]%*2c"; 
> }
> 
> 
> 
> PS
> 
> I am able to use curl from command line to successfully set the hostname. 
> 
> curl -X PUT -d '"New-Hostname"' https://urldefense.us/v3/__http://129.57.203.137/io/net/hostname/value.json__;!!G_uCfscf7eWS!f01ayFSJNsXqAAqGmOKGPXH4SuSPR_8UAlf8IXiWd-JuQtDWoFGjoDqT-FV3qjx0n8nkLhDvsD1Dx35nhsUmiKf7Ug$ 
> 
> 

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

Navigate by Date:
Prev: Re: The teck-talk mailing list seems to be unarchived Johnson, Andrew N. 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 
Navigate by Thread:
Prev: HTTP PUT Request - StreamDevice Kyle Hesse 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 
ANJ, 11 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·