Experimental Physics and Industrial Control System
It seems the Linux servers I tested with were more forgiving. :-)
I will change the example in my documentation...
On Fri, 2022-06-10 at 13:34 +0000, Chris Gregory - STFC UKRI wrote:
> Thanks both,
>
> Just tested and I confirm that outTerminator = CR LF CR LF works for me.
>
> Regards
> Chris
>
> From: Kasemir, Kay <kasemirk at ornl.gov>
> Sent: 10 June 2022 14:32
> To: Gregory, Chris (STFC,RAL,CLF) <christopher.gregory at stfc.ac.uk>; tech-talk at aps.anl.gov; Zimoch Dirk (PSI) <
> dirk.zimoch at psi.ch>
> Subject: Re: StreamDevice with a REST API
>
>
> > As the host is running on Windows, do you need CR LF CR LF? (I hope not.)
>
> I think so, see https://stackoverflow.com/questions/5757290/http-header-line-break-style :
>
> CR = <US-ASCII CR, carriage return (13)>
> LF = <US-ASCII LF, linefeed (10)>
> HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all protocol elements except the entity-body
>
> And you need two of them at the end of GET:
> Ends the GET
> Tells the server that there are no more request headers
>
> This email and any attachments are intended solely for the use of the named recipients. If you are not the intended
> recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the
> sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every
> reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the
> recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any
> liability for any losses or damages which the recipient may sustain due to presence of any viruses.
- References:
- StreamDevice with a REST API Chris Gregory - STFC UKRI via Tech-talk
- Re: StreamDevice with a REST API Zimoch Dirk (PSI) via Tech-talk
- Re: StreamDevice with a REST API Kasemir, Kay via Tech-talk
- RE: StreamDevice with a REST API Chris Gregory - STFC UKRI via Tech-talk
- Navigate by Date:
- Prev:
RE: StreamDevice with a REST API Chris Gregory - STFC UKRI via Tech-talk
- Next:
Re: PVStructure vs Structure Madden, Timothy J. 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
2024
- Navigate by Thread:
- Prev:
RE: StreamDevice with a REST API Chris Gregory - STFC UKRI via Tech-talk
- Next:
RE: StreamDevice with a REST API Freddie Akeroyd - STFC UKRI 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
2024