logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
hanan.sharivkin  
#1 Posted : Friday, January 31, 2020 6:57:05 AM(UTC)
hanan.sharivkin

Rank: Newbie

Groups: Registered
Joined: 1/20/2020(UTC)
Posts: 8
United States
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?
doggy  
#2 Posted : Friday, January 31, 2020 7:14:19 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,087
Belgium
Location: Belgium

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
maybe this could help (bottom of post)

https://forums.vmix.com/...ng-for-Dummies#post70833

or google "The server committed a protocol violation. Section=ResponseStatusLine"


btw , why would this be a feature request ?
hanan.sharivkin  
#3 Posted : Sunday, February 2, 2020 7:10:30 PM(UTC)
hanan.sharivkin

Rank: Newbie

Groups: Registered
Joined: 1/20/2020(UTC)
Posts: 8
United States
Location: CA

Nope :(
Same Error....
any Ideas?

hanan.sharivkin  
#4 Posted : Sunday, February 2, 2020 9:07:14 PM(UTC)
hanan.sharivkin

Rank: Newbie

Groups: Registered
Joined: 1/20/2020(UTC)
Posts: 8
United States
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.



doggy  
#5 Posted : Sunday, February 2, 2020 9:45:49 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,087
Belgium
Location: Belgium

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
I guess the problem is not vMix or your script but the answer from the other software that is causing a problem
hanan.sharivkin  
#6 Posted : Sunday, February 2, 2020 9:47:28 PM(UTC)
hanan.sharivkin

Rank: Newbie

Groups: Registered
Joined: 1/20/2020(UTC)
Posts: 8
United States
Location: CA

is there a way to ignore the response?
doggy  
#7 Posted : Sunday, February 2, 2020 10:00:46 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,087
Belgium
Location: Belgium

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
Originally Posted by: hanan.sharivkin Go to Quoted Post
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 ?
Users browsing this topic
Guest
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.