¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: HttpsClient => Content-Length issue

 

On Fri, Feb 11, 2022 at 08:54 AM, fabiodaubermann wrote:
Troy: I ran a test with your utility to send out a GET request to??and the exact same thing happened: crestron does not seem to send Content-Length, but if I add a Content-Length as custom header (which matches my payload, of course)? the module doesn't work (I suspect Crestron never sends the request to begin with).
I've never seen the need for a Content-Length on a GET requests because it isn't really standard to have a message body in GET requests. Think about what happens when you type a URL in your browser.
?
--
?
Crestron Service Provider - TBD Enterprises Inc.


Re: Server for testing

 

¿ªÔÆÌåÓý

I used an Amazon s3 bucket for testing

On Feb 11, 2022, at 3:40 PM, Dustin Hurlock <dustinhurlock@...> wrote:

?If it works in the browser, there is likely something off with your http request in C#. I've found when something isn't working it is often a missing or incorrectly formatted header in the request. I typically use Postman to test http requests and make sure I'm including all the correct headers.?Are you getting any response and if so, what status code does it have?
You can also host files from the built-in webserver of a processor.?


Re: Server for testing

 

If it works in the browser, there is likely something off with your http request in C#. I've found when something isn't working it is often a missing or incorrectly formatted header in the request. I typically use Postman to test http requests and make sure I'm including all the correct headers.?Are you getting any response and if so, what status code does it have?
You can also host files from the built-in webserver of a processor.?


Re: HttpsClient => Content-Length issue

Master He
 

When you send a "GET" request, there should be no Content.

I have never needed to add content length myself in the header for Crestron http or https.

Cheers,

On Friday, February 11, 2022, 07:54:42 a.m. PST, fabiodaubermann <fdaubermann@...> wrote:


Thank you guys for the replies, but the issue seems to be very peculiar indeed.
Important to note that things work properly on the http version. This issue?only?occurs?on https .
The problem seems to be that Crestron https fails to include the Content-Length in the header, and if I try to add it myself, it will cause the https client to fail (becomes unresponsive, with nothing on the error log that I can tell).
Important to note that this is not a matter of making a mistake when adding the header: I tested this by adding some other custom headers and they work just fine. But as soon as I try to add a Content-Length header it will freeze without any clues as to why (which is something I shouldn't have to do to begin with).
?
Here is a more simplified version of the code with a functional example demonstrating both the pass/fail scenarios. It can be loaded in a 3-series and tested from the console.
?
Troy: I ran a test with your utility to send out a GET request to??and the exact same thing happened: crestron does not seem to send Content-Length, but if I add a Content-Length as custom header (which matches my payload, of course)? the module doesn't work (I suspect Crestron never sends the request to begin with).
Erik: I gave it a shot using your way as well but the problem persisted. The issue seems deeper than the just the code-base we are using.
?
Based on some reading I did, Content-Length is one of those things that is optional or mandatory depending on the HTTP version, and I can't really sniff anything meaningful with Wireshark because its all encrypted.
I'm starting to think if this has anything to do with what HTTP Version Crestron is using... I might open a case with crestron, will keep trying...?
?


Server for testing

 

What is everyone using as a test server that SimplWindows, S+ and C# can all connect to and retrieve data. Trying not to need to purchase an actual server but more virtual.

Currently trying to get Chrome Web Server to function. Works in browser but not able to get C# to connect and retrieve and files. I've heard that this can be done with Dropbox.

For instance: I created an XML (probably need to convert to JSON) that has all my channel lineups. Includes channel# and logo URL. Is there a virtual server that I can save this document and reference in C# to retrieve file so I can use the data?

Chrome Web Server points to a folder on your local laptop and I can view this document in a browser using??IP:8080/data/myLineup.xml?


Mobile Pro G app on iPad - archive download error

 

¿ªÔÆÌåÓý

Hello,

?

My Crestron installation is 10 years old and working perfectly. However, an older iPad (version 9.0) is still being used for the Crestron Mobile Pro G app (V2.00). We tried to install the Mobile Pro G app on a newer iPad (iPadAir2).

Got it to connect to the server and all but as it loads the archive file, it stops at the 29th of 136 manifest file and then displays the dreaded ¡°Archive Error¡± message¡­ and then suggests that the best man to contact is your friendly installer¡­

?

Don¡¯t see why it still works fine on the old iPad but can only load part of the manifest files on the new iPad.? Has anyone had the same or similar problem? - Ingrid

?


Re: HttpsClient => Content-Length issue

 

Thank you guys for the replies, but the issue seems to be very peculiar indeed.
Important to note that things work properly on the http version. This issue?only?occurs?on https .
The problem seems to be that Crestron https fails to include the Content-Length in the header, and if I try to add it myself, it will cause the https client to fail (becomes unresponsive, with nothing on the error log that I can tell).
Important to note that this is not a matter of making a mistake when adding the header: I tested this by adding some other custom headers and they work just fine. But as soon as I try to add a Content-Length header it will freeze without any clues as to why (which is something I shouldn't have to do to begin with).
?
Here is a more simplified version of the code with a functional example demonstrating both the pass/fail scenarios. It can be loaded in a 3-series and tested from the console.
?
Troy: I ran a test with your utility to send out a GET request to??and the exact same thing happened: crestron does not seem to send Content-Length, but if I add a Content-Length as custom header (which matches my payload, of course)? the module doesn't work (I suspect Crestron never sends the request to begin with).
Erik: I gave it a shot using your way as well but the problem persisted. The issue seems deeper than the just the code-base we are using.
?
Based on some reading I did, Content-Length is one of those things that is optional or mandatory depending on the HTTP version, and I can't really sniff anything meaningful with Wireshark because its all encrypted.
I'm starting to think if this has anything to do with what HTTP Version Crestron is using... I might open a case with crestron, will keep trying...?
?


Re: ZeeVee Zyper 4K Management Platform.

 

THANK YOU very much for this.? The ZeeVee supplied modules certainly do leave a lot to be desired.? The information you provided has been a huge help!


Re: Extracting part of a return string

 

Hi,

Lincoln that worked for me...

Thank you so much for your help, i really appreciate it.?

I thought I would have needed Substrings and Gathers to pull the information but your suggestion has worked a charm.

Have a great day


Re: NVidia Shield control from Crestron

 

¿ªÔÆÌåÓý

Hi,

?

i?m using Videostrom IRUSB. It says IR in it?s name, but the IR-part is not being used for this purpose: it creates a direct IP-control connection.

It works pretty well.

The only drawback is that it takes a couple of minutes after booting the Shield until the control connection is established.

Plus it creates an annoying splash screen that looks pretty confusing to people.

?

I?m also into Control4 ¨C so if I can do anything to support you writing a Crestron module based on that, give me a shout.

?

Cheers,

Thorsten

?

Von: [email protected] <[email protected]> Im Auftrag von joshua.p.mckown@...
Gesendet: Donnerstag, 10. Februar 2022 23:07
An: [email protected]
Betreff: Re: [crestron] NVidia Shield control from Crestron

?

I use a homebrew solution to control mine at home which is, unfortunately, not licensed for commercial use.

I always tell people this, but beware of solutions that emulate USB keyboards such as the Flirc. Keyboard support is solid in Android TV OS, but most TV app developers don't expect you to use a keyboard, and some common apps (I'm lookin at you, HULU) don't support keyboard input at all.

I know they released an official Control4 TCP/IP driver a few months back. Been waiting to see if it's possible to write a S+ module that can use the same method as the Control4 driver. I know nothing about Control4, though.?


Re: Who likes a troubleshooting mystery?

 

The fact that one of the panels gives a completely different format for it's ping reply makes me wonder if Crestron's beloved Auto-update updated firmware on some of the panels. Check your firmware revs.

?

Another possibility might be some sort of multicast blocking on the switches.


Re: NVidia Shield control from Crestron

 

I use a homebrew solution to control mine at home which is, unfortunately, not licensed for commercial use.

I always tell people this, but beware of solutions that emulate USB keyboards such as the Flirc. Keyboard support is solid in Android TV OS, but most TV app developers don't expect you to use a keyboard, and some common apps (I'm lookin at you, HULU) don't support keyboard input at all.

I know they released an official Control4 TCP/IP driver a few months back. Been waiting to see if it's possible to write a S+ module that can use the same method as the Control4 driver. I know nothing about Control4, though.?


NVidia Shield control from Crestron

 

Anyone controlled an NVidia shield from Crestron.?
Am looking to emulate the remote, any additional controls would be cool also.?

Thanks,?

Tray?


Re: HttpsClient => Content-Length issue

 

Take a look at my example on Github for the HttpsUtility.

--
?
Crestron Service Provider - TBD Enterprises Inc.


Re: Who likes a troubleshooting mystery?

 

I had a similar problem recently.? Job that commissioned months ago, have 3 Sony PTZ cameras with RTSP streams to panel for preview (commercial job).? All was working, and I made a few unrelated changes remotely at the end of commissioning.? Recently got a report that the preview wasn't working for any of them.? I'm troubleshooting and streams are ok, just no image on panel.? I open up VTPro, and all 3 "sources" for my video window suddenly have "source type" set to "local" instead of "h.264".? They were originally set to h.264 and working.

Since I didn't do any changes to the video window in any of my last iterations, I'm wondering if VTPro is changing this setting on panel open when going from an older version of VTPro to a newer version.? The only way it could have been changed, is if VTPro did it automatically and then it got re-saved that way.

Changing them back to h.264 , recompiling the TP and loading immediately fixed the problem.
--
Jason Mussetter

Control Systems Designer

Mussetter Programming Services
www.mpsav.com


Re: Crestron Go app on iPad

 

had him set the orientation in the iPad to landscape for the crestron app
now it works??


Re: .net issue with simpl

 

online ID 1001084 addresses the issue and provides a link for the .net download


Re: .net issue with simpl

 

Never mind.? Should have used the search option first.? Found the online ID in a post from a couple of weeks ago.


Re: .net issue with simpl

 

Do you have the .net 3.5 runtime or the SDK? You have to install the .net 3.5 SDK, you can download it from OLH 1001084.


.net issue with simpl

 

I have a computer on site running windows 10 with all updates installed.? When I try to compile I get a lot of warnings/notices now and one of them is telling me that it requires .net 3.5.? I check windows features and it is enabled, I tried reinstalling simpl with master installer and the download link fail when it tries to install .net.? I have installed .net separately and still have issue.? Any ideas?