NetTalk Central

Author Topic: Query on webservice Date example  (Read 2219 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Query on webservice Date example
« 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]
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: Query on webservice Date example
« Reply #1 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