NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on January 13, 2016, 02:10:59 AM

Title: Query on webservice Date example
Post by: terryd on January 13, 2016, 02:10:59 AM
I was running though the Web77 Examples.
Running the mySystem/date example I notice that the documentation for Get (3.png) shows http/1.1.
If I look at the client application and look at the Request I see that it has http:/1.0 (1.png)
The response shows http/1.1 (2.png)
Questions
1.)Is this OK?
2.)Where in the code can I find where the request generates http:/1.0


[attachment deleted by admin]
Title: Re: Query on webservice Date example
Post by: Bruce on January 13, 2016, 06:39:30 PM
>> 1. Is this OK?

yes. The NetTalk server isn't all that picky over whether it's HTTP 1.0 or 1.1 - fundamentally it treats them both the same.


>> 2. Where in the code can I find where the request generates http:/1.0

It's a property of the web client class (ie the "requestor".) For backward compatibility reasons it's still at 1.0 (it might be worth reviewing that at some point now because it's very doubtful that any server would complain about 1.1 these days..)

thisWebclient._HttpVersion = 'HTTP/1.1'

Cheers
Bruce