vMix Forums
»
General
»
Feature Requests
»
Error on Http Request Script
Rank: Newbie
Groups: Registered
Joined: 1/20/2020(UTC) Posts: 8 Location: CA
|
Hi.
trying to run an HTTP Request to another software from a script.
the Command is working but there is and error and the script breaks.
trying different methods yet the same Error :
" The server committed a protocol violation. Section=ResponseStatusLine"
Method 1:
Dim webClient As New System.Net.WebClient Dim result As String = webClient.DownloadString("http://localhost/PTZJoy=Camera3")
Method 2:
Dim webStream As Stream Dim webResponse = "" Dim req As HttpWebRequest Dim res As HttpWebResponse req = CType(WebRequest.Create("http://localhost/PTZJoy=Camera1"), HttpWebRequest) res = CType(req.GetResponse(), HttpWebResponse)
Same error for both Scripts...
Any idea?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,221 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/20/2020(UTC) Posts: 8 Location: CA
|
Nope :( Same Error.... any Ideas?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/20/2020(UTC) Posts: 8 Location: CA
|
can i try updating the .NET on this workstation?
this is from Microsoft:
ServerProtocolViolation - The response from the server is not a valid HTTP response. This problem occurs when the .NET Framework detects that the server response does not comply with HTTP 1.1 RFC. This problem may occur when the response contains incorrect headers or incorrect header delimiters.RFC 2616 defines HTTP 1.1 and the valid format for the response from the server. For more information, see RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1 at Internet Engineering Task Force (IETF) website.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,221 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
I guess the problem is not vMix or your script but the answer from the other software that is causing a problem
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/20/2020(UTC) Posts: 8 Location: CA
|
is there a way to ignore the response?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,221 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: hanan.sharivkin is there a way to ignore the response? I dunno but Googling in your place i often encounter <httpWebRequest useUnsafeHeaderParsing="true" /> btw , does it work strait from a browser ?
|
|
|
|
vMix Forums
»
General
»
Feature Requests
»
Error on Http Request Script
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close