Results 1 to 2 of 2

Thread: Inet control and HTTPS protocol

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Leeds, UK
    Posts
    1

    Question

    I have a vb CGI app that uses an Inet Control on a form to query other webservers for data that it then returns to the browser.
    USing a GET request (form https://server.com/appp.pl?name=value&name=value...etc ) works fine on my development machine running win98 and O'rielly Website Pro as does the simple http:// request.

    However, on shifting the CGI app to the NT server, the http:// requests still work fine, but the https:// requests from the Inet control lock up - nothing happens - I even put a timer in the stillexecuting loop to catch and timeout after 2 minutes - but this didn't happen because the lock-up happens before the stillexecuting statement can be first executed.
    I know that the URL is valid, as I have chucked it through a browser on the NT server and got a response. However, the webserver executes it's CGI appps under an anonymous account on the NT machine. Could this be the problem?

    The code is something like:

    Public Function XCommand(ByVal PostString As String, ByVal URLString As String, ByVal Method As String) As String


    If Method = "GET" Then
    URLString = URLString & "?" & PostString
    PostString = ""
    End If

    Send ("<! - " & URLString & ">")
    'Inet1.Execute URLString, Method, PostString, "Content-Type:application/x-www-form-urlencoded"
    Send ("<! -Sent>")
    Dim timStart As Long
    timStart = Timer
    Do While Inet1.StillExecuting
    If timStart < Timer - 120 Then
    Inet1.Cancel
    Exit Do
    End If
    DoEvents
    Loop
    timStart = Timer
    Do While Not Finished
    If timStart < Timer - 120 Then Exit Do
    DoEvents
    Loop
    XCommand = Response
    End Function

    (Response is set in the StateChanged event handler)


    This is driving me potty. Anyone got any ideas?
    Cheers,
    A.
    MrMoosehead Strikes Again

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    218
    I have the same problem. I'm trying to make two checks but gettting some data from a secure server: the 2nd check is triggered when in statechanged I get some specific data using getchunk.

    My code works fine if I use icHTTP and port 80, but if I change to icHTTPS and port 343 the checks end abruptly after the 1st one.

    What am I missing?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width