Announcement

Collapse
No announcement yet.

HTTP.SubmitSecure

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

  • HTTP.SubmitSecure

    I am trying to get the HTTP.SubmitSecure function working and I am receiving the error code 2502 - "Could not open request".

    What would cause this?

    The URL is: https://www.mydomain.com/portal/file.php?ID=12345

    I'm able to access the same URL through a browser, however I do get a Security Alert dialog warning me the certificate is not valid. Could this be what's causing the 2502 error in TrueUpdate?

    Prior to changing it to use a secure method, I was using the HTTP.Submit function successfully with the URL:

    Small business web hosting offering additional business services such as: domain name registrations, email accounts, web services, online community resources and various small business solutions.



    Thanks,

    -Shawn

  • #2
    You should use HTTP.Submit() if you don't have a valid certificate, or try to set _IgnoreInvalidCertificate to true (available since version 3.5.0).

    Ulrich

    Comment


    • #3
      Ulrich,

      Thanks for the reply. I can not find any reference to _IgnoreInvalidCertificate throughout the TrueUpdate help. Sounds like it's what I need, but where and how do I set this value? Do I use the SessionVar.Set?

      I'm using TU version 3.5.2.0

      Cheers,

      -Shawn

      Comment


      • #4
        Originally posted by smc0862 View Post
        Sounds like it's what I need, but where and how do I set this value? Do I use the SessionVar.Set?
        You should set this variable at the start of your script.

        Code:
        _IgnoreInvalidCertificate = true;
        You find mention to this in the release notes.

        Ulrich

        Comment


        • #5
          Thanks Ulrich, however adding that line to my server-side script did not fix the problem. Still getting the 2502 error.

          Reason I want to use Secure HTTP is that our somewhere between our customer sites and our website there is a virus or malware that is intercepting data coming back down to the clients and injecting some JavaScript code that is sending people to a site using scare tactics to sell malware software. It's supposedly a product called TotalSecurity.

          Our web portal was affected by this as well and using HTTPS seemed to prevent this virus from changing the HTML code being sent to clients. So I wanted to do the same with the HTTP.Submit calls I used in the update process that contact our portal.

          -Shawn

          Comment


          • #6
            Hello,

            I assume you placed the _IgnoreInvalidCertificate = true into the server script because it is there where you make the call to HTTP.SubmitSecure()?

            You said before that you were getting a security alert warning dialog. Do you still get the same dialog? If the dialog is gone, this would indicate that the boolean worked correctly, but there still might be another problem that is preventing the connection to the secure server.

            Ulrich

            Comment


            • #7
              Yes, I place the line in the server script.

              I never said that I received a dialog when running the TrueUpdate script. Sorry if that was not obvious. I'm receiving an error 2502 in the log file. The Security Alert dialog appears when I manually access the same web page from a browser, such as IE 8.0.

              So, from browser I type in the URL:

              Small business web hosting offering additional business services such as: domain name registrations, email accounts, web services, online community resources and various small business solutions.


              ...and I get the Security Alert, but when I continue I do receive the code from the portal.


              And from TrueUpdate server script:


              -- The following variable allows us to ignore the Security Certificate on the
              -- hosting web server.
              --
              _IgnoreInvalidCertificate = true;

              -- Page to access on the portal to get code.
              g_sGetCode = "https://www.mydomain.com/portal/page.php";

              -- Make Secure Submit to the page.
              val_table = {ID="12345"};
              g_Code = String.Upper(String.TrimLeft(String.TrimRight(HTTP .SubmitSecure(g_sGetCode,val_table))));


              ...I get error 2502 and the g_Code value is blank.


              I'm checking with the hosting company to see if the port is set to 443 for the HTTPS.

              -Shawn

              Comment


              • #8
                Hello,

                we seem to have solved this issue. The modified code should be part of the next release of TrueUpdate, but I am unable to state when it will be published.

                Ulrich

                Comment

                Working...
                X