Announcement

Collapse
No announcement yet.

WinHTTPRequest bei HTTPS

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • WinHTTPRequest bei HTTPS

    Hallo,

    ich will mittels WinHTTPRequest auf eine Seite zugreifen, bekomme jedoch immer eine "Laufzeitfehler '-2147012867 (80072efd) Automatisierungsfehler' Fehlermeldung. Kann mir jemand sagen woran das liegt ? Hier der Code (mit HTTP-Seiten funktioniert der einwandfrei, aber ich brauch den für HTTPS):

    Set httpObject = CreateObject("WinHttp.WinHttpRequest.5.1")
    httpObject.Option(4) = 256 + 512 + 4096 + 8192
    httpObject.Open "GET", "https://www.xing.com/", "false"
    httpObject.send
    MsgBox httpObject.GetAllResponseHeaders

    Vielen Dank

  • #2
    Kann mir jemand sagen woran das liegt ?
    Daran das es HTTPS ist

    http://msdn.microsoft.com/en-us/library/aa384076.aspx

    könnte helfen
    Christian

    Comment


    • #3
      soweit war ich auch schon

      ich hab das ja auch mit SetClientCertificate und den verschiedenen Kombinationen ausprobiert aber hat kein Erfolg gebracht. Und zum anderen sollte ja ohne SetClientCertificate folgendes gelten:

      If you do not specify a certificate and an HTTPS server requires a client certificate, WinHTTP selects the first certificate in the default certificate store. If no certificates exist, an error is raised. If the certificate is not accepted, the server returns a 403 status code to indicate that the request cannot be fulfilled. You can then choose a more appropriate certificate with SetClientCertificate and resend the request.
      Aber anscheindend macht der das nicht bzw. einen 403-Fehler krieg ich ja auch nicht...er bricht schon früher ab
      Zuletzt editiert von rintimtim; 17.04.2009, 18:44.

      Comment


      • #4
        soweit war ich auch schon
        ich hab das ja auch mit SetClientCertificate und den verschiedenen Kombinationen ausprobiert
        Aha, das konnte ich nicht wissen
        Christian

        Comment

        Working...
        X