Web Connection
wwHTTP and TLS
Gravatar is a globally recognized avatar based on your email address. wwHTTP and TLS
  Stein Goering
  All
  Feb 1, 2021 @ 07:55pm

We use this code to confirm Google reCaptchas:

  loHTTP = CREATEOBJECT('wwHTTP')
  loHTTP.nhttpPostmode = 1
  loHTTP.AddPostkey([response], cRecaptcha)
  loHTTP.AddPostkey([secret], lcSecret)
  lcResult = loHTTP.Httpget([https://www.google.com/recaptcha/api/siteverify])

This started failing on one of our sites - we're getting: A connection with the server could not be established (nError=12029) The admin says this happened when he disabled TLS 1.0. Does that make any sense?

I suggested there was a firewall issue of some sort but he claims he can hit that address if he brings up a browser from the server console. Then what would prevent wwHTTP from hitting the same site?

--stein

Gravatar is a globally recognized avatar based on your email address. re: wwHTTP and TLS
  Rick Strahl
  Stein Goering
  Feb 1, 2021 @ 08:15pm

What OS are you calling from?

Old operating systems (XP and Vista if I recall) don't work with TLS 1.2 if using the Windows HTTP APIs (as wwHttp does). Windows 7 and 8 need registry flags to enable it, and Windows 8.1 and 10 should just work.

Here's more detail...

Web Connection and TLS 1.2 Support

Gravatar is a globally recognized avatar based on your email address. re: wwHTTP and TLS
  Stein Goering
  Rick Strahl
  Feb 1, 2021 @ 08:57pm

Server 2012. They claim they already had TLS 1.2 enabled. I'll dig into your blog post and see if I can figure out what their problem is.

© 1996-2021