![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(VBScript) Example: Http.GetLastJsonData methodDemonstrates the Note: This example requires Chilkat v11.0.0 or greater.
Dim fso, outFile Set fso = CreateObject("Scripting.FileSystemObject") 'Create a Unicode (utf-16) output text file. Set outFile = fso.CreateTextFile("output.txt", True, True) success = 0 set http = CreateObject("Chilkat.Http") set resp = CreateObject("Chilkat.HttpResponse") ' Only allow TLS 1.2 or better. http.SslProtocol = "TLS 1.2 or higher" success = http.HttpNoBody("GET","https://google.com/",resp) If (success = 0) Then outFile.WriteLine(http.LastErrorText) WScript.Quit End If set json = CreateObject("Chilkat.JsonObject") json.EmitCompact = 0 http.GetLastJsonData json outFile.WriteLine(json.Emit()) ' Output as of Chilkat v11.1.0 ' Additional information may be added as requested or needed in future versions of Chilkat. ' { ' "tls": { ' "params": { ' "sniHostname": "www.google.com", ' "allowConnectionOnlyIfServerChooses": "TLS 1.2 or higher" ' }, ' "negotiatedTlsVersion": "TLS 1.3" ' } ' } outFile.Close |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.