ActiveX and IE using https and TLSv1

I'm starting with the ActiveX - Internet Explorer example found in C:\Program Files\National Instruments\LabVIEW 2009\examples\comm\ axevent.llb.  In the Navigate2::URL parameter, I can type in the IP address of a device I'm trying to talk to and it will serve up some web pages.  In the WebBrowser in the front panel, I can see the pages, fill in form data and send it, and get stuff back (in the form of more html pages).  My problem is that I need to automate this interface, and in the final app, the server is going to send me XML, and not html.  So, what I want to do is to perform GET/POST commands, capture the data, parse/analyze the XML, repeat.  Also, this is all done in secure mode.  In the example above, I can type in https://xx.xx.xx.xx and after the login, I'm in.  I see the opening (secure) page in the webBrowser on the front panel.  What I need is
(1) to understand how to send in more specific commands.  Right now, after I type in the initial https link, my labview code really isn't doing anything.  It's all in the front panel's webBrowser.  I need to be able to send in specific GET commands, like GET https://xx.xx.xx.xx/setupRfData.asp HTTP/1.1.  And specific POST commands like POST https://xx.xx.xx.xx/setupRfData.cgi HTTP/1.1.  What I'm not sure about is how to pass in those parameters to the ActiveX Navigate(2) command.  I see the API at
http://msdn.microsoft.com/en-us/library/aa752093(VS.85).aspx
but it's not really clear how use it with LabVIEW.
(2) In the POST commands, I have to send in data, which I assume goes in the POSTdata field, but the format is unclear.
(3) And the Headers field also is where I'd like to specify certain things like "Connection::Keep-Alive"
(4) Finally, this may not have been clear above, but I need to send this device http commands, and it can send me either html or XML based on an input parameter I provide when I send it commands.  If I say "html" then I would just control the device via the web pages it sends back to me.  When it sends back XML, however, instead of a webBrowser, I could probably just have the XML displayed in an edit box?  My concern, though, is that the WebBrowser is what is taking care of all the secure handshaking for me.  How do I keep the link established and still receive/analyze XML?

BCho wrote:
Hey mrbean,
To address your first question; the web page continues to update even though the VI may not be running because
when you did run the VI you loaded the script for that page. This script continues to loop even though the VI
is not running. With an IE ActiveX container, it is a lot like you have a normal IE page open; it just happens
to also be a part of your front panel. If you negative, say, www.ni.com, you will notice that even though
the page is fully loaded and IE is not still attempting to load the page, it still 'updates'. You may also notice
that links still work, even though the VI is not still running. So, one way to think about and IE ActiveX
container is like a normal IE window that happens to also be in your VI.
In regards to how to send specific GET and POST commands; unfortunately, I am not very familiar with the ins and
outs of that particular ActiveX control. Judging by the msdn page that you pointed out, I would make the same
assumptions about GET and POST transactions. If you don't wire anything to the POSTData input you do a GET
transaction.
What happens if you send the entire URL https://10.4.17.1/setupRfData.axp HTTP/1.1? If you were
to do this same routine in a normal IE window, what URL would you use? What happens if you do include the HTTP/1.1? How about if you include it, do you get a different response? Here is a Thread that gives a little bit of relevant information.
When I type in the entire URL above, I get a message saying "The Web page you are viewing is trying to close the window (yes/no)".  I've read several forums about this, but most make mention of java script updates and IE7.  I'm using IE6 and I'm not doing any scripting.  I did see another post that said that it's possible I need to specify the "Referer", so I'm going to try that shortly by adding it to the Headers input of the Navigate2.
My underlying problem is that the in the current app, the user (me right now) only sees the html pages that the server is serving up (via https/TLSv1).  With that interface, you can enter info into various fields and send them to the server, or click a different tab which behind the scenes performs a GET, but no one has to type any of that.  In our app, we're trying to replace the IE with a labVIEW ActiveX IE and manually build/send these commands so that we can create automated sequences for a production test.  Therefore, I've used a sniffer (WireShark) and have determined what commands/fields are going across the ethernet to the server (and coming back). 
As I mentioned, I tried sending the fully qualified GET message ( URL https://10.4.17.1/setupRfData.axp HTTP/1.1) and saw the ...trying to close message.  Assuming I can get past this, my next issue is accessing the response information coming back from the server.  Right now it's html, but in the final product it's going to be XML.  (1) What is the LabVIEW Invoke Method that allows me access to the response information and (2) Is there a way to setup an Event that would notify me when a response came in.  (3) Can the same WebBrowser that currently displays html be used to display XML

Similar Messages

  • In OS 10.6 and Safari 6, http: and https: are no longer displayed.

    In OS 10.6 and Safari 6, http: and https: are no longer displayed.
    Can this behaviour be restored??
    In 10.5.8 with Safari 5.x some sites will show up as https: while the same
    site in Safari 6 may, or may not, show the grey or green box https: box.
    Is this this a certificate problem?
    Can I set the address bar to for the URL prefix?
    I have both systems on separate disks and consistantly see this behaviour on some sites.
    How can I feel assured that a site is or is not secure using Safari 6??
    A relative also shares this same issue
    Thanks for your Help!

    Safari 6 : http is not shown in the URL (& Search combined) bar, but https is always shown, often with a symbol lock. The URL address font is black, after the / it is grey.
    All as expected.
    Best.

  • HT204053 I had Snow Leopard and was using iWeb and Filezilla for my website (not MobileMe). Wanting to move to single-click publishing, I now find it is not supported by iCloud and Mountain Lion. I feel cheated, having bought it mainly for this purpose!

    I had Snow Leopard and was using iWeb and Filezilla for my website (not MobileMe). Wanting to move to single-click publishing (supported by MobileMe), I now find it is not supported by iCloud and Mountain Lion. I feel cheated, having bought it mainly for this purpose! The other thing they don't tell you is that Mountain Lion disables OfficeMac, and I am considering uninstalling it for that reason - do I get my money back?!

    You stated; "Mountain Lion disables OfficeMac"
    That is not true.
    Mountain Lion does not have Rosetta so it is not capable of executing PowerPC code. If you have MS Office 2004 that is coded in PowerPC code and will not run in Mountain Lion. What you need to do is upgrade to an Intel version of Office.
    Allan

  • Turn off phone capability of iPhone and continue using cps and cellular data?

    Can I turn off phone capability of any iPhone and continue using cps and cellular data, practically using the device as iPad? Is this going to be possible with iOS8 or iPhone 6 Plus?

    This could be what you are looking for:
    Using an iPhone without a wireless service plan

  • Example of WAIT and CONTINUE using checkBox and thread and getTreeLock()

    I had so much trouble with this that I descided to
    post if incase it helps someone else
    // Swing Applet example of WAIT and CONTINUE using checkBox and thread and getTreeLock()
    // Runs form dos window
    // When START button is pressed program increments x and displys it as a JLabel
    // When checkBox WAIT is ticked program waits.
    // When checkBox WAIT is unticked program continues.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class Wc extends JApplet {
    Display canvas;//drawing surface is displayed.
    Box buttonPanel;
    Box msgArea;
    public static JButton button[] = new JButton [2];
    public static JCheckBox checkBox[] = new JCheckBox[2];
    public static JLabel msg[] = new JLabel [2];
    String[] buttonDesc ={"Start","Quit"};
    public static final int buttonStart = 0;
    public static final int buttonQuit = 1;
    String[] checkBoxDesc ={"Wait"};     
    public static final int checkBoxWait = 0;
    public boolean wait;
    public Graphics g;
    //================================================================
    public static void main(String[] args){
    Frame f = new Frame();
    JApplet a = new Wc();
    f.add(a, "Center"); // Add applet to window
    a.init(); // Initialize the applet
    f.setSize(300,100); // Set the size of the window
    f.show(); // Make the window visible
    f.addWindowListener(
    new WindowAdapter(){
    public void windowClosing(WindowEvent e){System.exit(0);}
    }// end main
    //===================================================
    public void init() {
    canvas = new Display();
    setBackground(Color.black);
    getContentPane().setLayout(new BorderLayout(3,3));
    getContentPane().add(canvas, BorderLayout.CENTER);
    buttonPanel = Box.createHorizontalBox();
    getContentPane().add(buttonPanel, BorderLayout.NORTH);
    int sbZ;
    // add button
    button[0] = new JButton(buttonDesc[0]);
    button[0].addActionListener(canvas);
    buttonPanel.add(button[0]);
    button[1] = new JButton(buttonDesc[1]);
    button[1].addActionListener(canvas);
    buttonPanel.add(button[1]);
    // add checkBox
    sbZ=0;
    checkBox[sbZ]=new JCheckBox(checkBoxDesc[sbZ]);
    checkBox[sbZ].setBackground(Color.white);
    checkBox[sbZ].setOpaque(true);
    checkBox[sbZ].addActionListener(canvas);
    buttonPanel.add(checkBox[sbZ]);
    msgArea = Box.createVerticalBox(); // add message
    sbZ=0;
    msg[sbZ]=new JLabel("1",JLabel.LEFT);
    msg[sbZ].setOpaque(true);
    msg[sbZ].setBackground(Color.black);
    msg[sbZ].setForeground(Color.red);
    msgArea.add(msg[sbZ]);
    getContentPane().add(msgArea, BorderLayout.SOUTH);
    } // end init();
    //===================================================
    public void stop(){canvas.stopRunning();}
    //===================================================
    // The following nested class represents the drawing surface
    // of the applet and also does all the work.
    class Display extends JPanel implements ActionListener, Runnable {
    Image OSI;
    Graphics OSG; // A graphics context for drawing on OSI.
    Thread runner; // A thread to do the computation.
    boolean running; // Set to true when the thread is running.
    public void paintComponent(Graphics g) {
    if (OSI == null) {
    g.setColor(Color.black);
    g.fillRect(0,0,getWidth(),getHeight());
    else {g.drawImage(OSI,0,0,null);}
    }//paintComponent
    public void actionPerformed(ActionEvent evt) {
    String command = evt.getActionCommand();
    if (command.equals(buttonDesc[buttonStart])) {
    startRunning();
    if (command.equals(buttonDesc[buttonQuit])) {
    stopRunning();
    if (command.equals(checkBoxDesc[checkBoxWait])){
    System.out.println("cb");
    if (checkBox[checkBoxWait].isSelected() ) {
    wait = true;
    System.out.println("cb selected twait "+wait);
    return;
    wait = false;
    synchronized(getTreeLock()) {getTreeLock().notifyAll();}
    System.out.println("cb selected fwait "+wait);
    } // end command.equal cb wait
    } //end action performed
    // A method that starts the thread unless it is already running.
    void startRunning() {
    if (running)return;
    // Create a thread that will execute run() in this Display class.
    runner = new Thread(this);
    running = true;
    runner.start();
    } //end startRunning
    void stopRunning() {running = false;System.exit(0);}
    public void run() {
    button[buttonStart].setEnabled(false);
    int x;
    x=1;
    while(x>0 && running){
    x = x + 1;
    msg[0].setText(""+x);
    try{SwingUtilities.invokeAndWait(painter);}catch(Exception e){}
    //importand dont put this in actionPerformed
    if (wait) {
    System.out.println("run "+wait);
    synchronized(getTreeLock()) {
    while(wait) {
    System.out.println("while "+wait);
    try {getTreeLock().wait();} catch(Exception e){break;}
    } //end while(wait)
    } // end sync
    } // end if(wait)
    } // endwhile(x>0)
    stopRunning();
    } // end run()
    Runnable painter = new Runnable() {
    public void run() {
    Dimension dim = msg[0].getSize();
    msg[0].paintImmediately(0,0,dim.width,dim.height);
    Thread.yield();
    }//end run in painter
    } ; //end painter
    } //end nested class Display
    } //end class Wc

    I just encountered a similar issue.  I bought a new iPhone5s and sent my iPhone4s for recycling as it was in great shape, no scratches, no breaks, perfect condition.  I expected $200 and received an email that I would only receive $24.12.  The explanation was as follows:  Phone does not power on - Power Supply Error.   Attempts to discuss don't seem to get past a customer service rep that can only "escalate" my concern.  They said I would receive a response, but by email.  After 4 days no response.  There is something seriously wrong with the technical ability of those in the recycling center.

  • I have the latest itunes and I use Windows and suddenly after working fine for years, itunes will not synch with OUtlook anymore. Any ideas?

    I have the latest itunes and I use Windows and suddenly, after working fine for years, itunes will not synch with Outlook anymore. Any ideas?

    Contact NIK for updated/upgraded versions of their plug-ins.  They have been having a lot of issues with their plug-ins.

  • I have Microsoft Office 2008 and only use Word and Excel. It takes 980 mb. I am considering replacing it with Apple iWorks 2013. If I do, can I delete Office, and still access and modify my Word and Excel documents?

    I have Microsoft Office 2008 and only use Word and Excel. It takes 980 mb. I am considering replacing it with Apple iWorks 2013. If I do, can I delete Office, and still access and modify my Word and Excel documents?
    I have a MacBook Air and OS 10.9.4

    Ron
    Just adding to what CSound has said.
    Pages and Numbers will change Word and Excel documents when they open and close them.
    Sometimes the change is subtle and sometimes not. With the latest versions of Pages and Numbers, more likely not.
    So don't think you are going to work with MsOffice files without problems. You will always have something not right and in some cases really annoyingly not right. Like having all the text from Pages appear bold in MsWord, or page breaks in the wrong place or some objects and graphics not appearing in one or the other.
    If working between different Operating Systems and MsOffice files, I also recommend LibreOffice. It opens and saves nearly all file formats. Unfortunately not .pages or numbers. Yet. The folks at LibreOffice are busy adding to it all the time, and making sure it works in all Operating systems, Mac, Windows and Linux and they are promising iOS as well soon.
    Peter

  • Consuming an External Web Service using HTTPS and WS Security

    Hello everyone,
    I'm having a problem setting the security information in a SOAP header using a generated ABAP Client Proxy to consume an external web service that requires a User ID and Password in the Header section of the SOAP message.  I need to use HTTPS. I'm on a WAS 7.01 SP08 system so from my readings, SAP is supposed to be able to add the username and password into the header section of the message.  I can't seem to get SAP to add this information added to the header.
    Here are the steps that I have taken to set the security values.
    1) Created the client proxy from the WSDL in SE80.  Basic Authentication on the Configuration tab was turned on automatically.
           Note, Transport Security is set to None.  I cannot change it.
    2) Created an outbound set user name profile in transaction WSPROFILE with the appropriate username and password.
    3) Added the profile to the default port in transaction LPCONFIG as an outbound under the WS Security section of the screen.
    When I called the external Web Service, I got back the following error message:
    com.ibm.wsspi.wssecurity.SoapSecurityException: WSEC5509E: A security token whose type is [http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken] is required.
    So, after reading through this Forum, I saw that I needed to use the SOAMANAGER.  I set up a Proxy in the SOAMANAGER and manually created the Logical Port.  This was the only way I could figure out how to set the Authentication Settings in the Logical Port to "User ID / Password".  I then entered the User ID and Password.
    However, I am still getting the same error message.  I feel I am close but missing some small configuration to tell SAP to use WS Security with a Username token.
    I'm not sure what I'm doing wrong, so any help would be appreciated.
    Thanks,
    Stephen

    I had this error again so I thought I would post my solution:
    The issue is SAP needs to know the certificates being used by the web site being called.  These certificates are automatically installed in your browser but need to be manually installed in SAP.  This is what I did:
    How to find/install new certificates
    Make sure you run Internet Explorer as an Administrator so you can export the certificates
    Go to the web site that SAP is trying to call in Internet Explorer
    Double click on the lock in the address bar
    View certificates
    Find the certificates that are being used
    Tools --> Internet Options --> Content --> Certificates
    Click on the “Trusted Root Certification Authorities” tab
    Find the certificate identified in step iii
    Export as a CER certificate
    Click on the “Intermediate Certification Authorities” tab
    Find the certificate identified in step iii
    Export as a CER certificate
    Go to STRUST in SAP
    Import the Certificates in the “Anonymous” or “Standard” SSL client
    Save
    RESTART the ICM via t-code SMICM  <-- Critical!!!
    Test

  • SRM-MDM-Catalog and  XI using HTTP

    I need to do a integration between SRM 5 and SRM-MDM-Catalog using XI.
    I imported the SRM-MDM-Catalog packages into the XI and I saw that all connections with MDM are using FTP in the comunnication channel template.
    Is it possible to do connections for MDM using http or soap?

    As far as I know using Files is how XI interacts with MDM. All scenarios I have seen on SDN have been with File adapter being used on MDM 's side.
    Maybe there is a way , am watching this thread as well.
    Regards
    Bhavesh

  • Can't use https and Marsedit to edit a user or group blog

    Hello,
    I wanted to use exclusively https to serve our blogs (group and users).
    On Marsedit the following settings works:
    Home URL = http://servername+/groups/+groupname/weblog/
    RPC URL = http://servername/RPC2
    Blog ID = groups/groupname/weblog
    The following hhtpS settings do not work:
    Home URL = https://servername+/groups/+groupname/weblog/
    RPC URL = https://servername/RPC2
    Blog ID = groups/groupname/weblog
    The solution seems to serve the blogs on http (80) and https (443)
    Regards,
    Thibault

    You can serve blogs and wiki exclusively through SSL and use Marsedit.
    If you have a proper certificate it will work "out of the box".
    If you use a self-signed certificate you just need to make sure it has been added to your keychain.
    Then Marsedit can initiate properly the encrypted communication.
    To add a self-signed certificate, just access your page with Safari using https:// .
    You will have a warning dialogue saying the certificate is not trusted blah blah..
    Just make sure you add permanently this certificate in your keychain by trusting it.
    Hope it helps.

  • Using HTTPS and SSH from LabVIEW VIs

    I am currently using custom VIs, built over the TCP/IP LabVIEW VIs, to access to a distant machine with the TELNET protocol, and to access a HTTP server with the HTTP protocol.
    In a near future, I will have to use more secure protocols such as SSH and HTTPS, that my VIs will no longer support.
    Does the NI Internet toolkit support SSH and HTTPS?
    And if it doesn't, what are the solutions?
    Using PuTTY with a command line for SSH is suggested by NI and I have already tested this successfully.
    Have someone other solutions and an idea for using HTTPS?
    I'm currently using LV 6.1.

    Hello,
    You could find other solutions on this forum thread : http://forums.ni.com/ni/board/message?board.id=170​&message.id=77865&requireLogin=False
    Regards,
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • Webmethods and XI using HTTPS POST

    hi,
    i have an idoc->xi-cXML scenario.
    when i do a https post to the vendor(runs on webmethods) they don't get the cxml but they can receive our namespace, interface, msg guid etc but not the cXML document itself.
    I did transmit the same cXML to other vendors where they said they have received it and i got a confirmed 200 success message too.
    now this leaves me wondering why this other vendor is not receiving it.
    From xi i did everything - increase the trace levels to see the message and i see that the cxml message going out but i don't understand why they are not receiving it.
    Any ideas how to troubleshoot this issue?
    Is there anything wrong on XI end?
    One more thing when i talked to the vendor-tech guy himself he thinks the way XI sends the cXML using HTTP POST might cause the cXML document for not receiving at other end?
    Any help would greatly be appreciated.
    Thanks,
    Tirumal

    chen -
    Can you elobarate on what you suggested.?
    Where can i check for the tcp gateway attached with note "soap faq"?
    Appreciate for your response.
    Thanks,
    Tirumal

  • When we Use HTTPS and HTTP

    Hi Frnds,
    when we Use HTTP's and HTTP.
    Can anyone explain...
    Regards,
    Raj

    Hi
    A general defination of HTTP and HTTPS would be :
    HTTP
    HTTP is the protocol that a web browser such as Internet Explorer uses to request a web page from a web server.
    It can be "implemented on top of any other protocol on the Internet, or on other networks. HTTP only presumes a reliable transport; any protocol that provides such guarantees can be used."
    HTTPS
    HTTPS is an encrypted form of HTTP used for sending sensitive data like credit card numbers between the browser and the web server. This is also sometimes called Secure HTTP or SSL (which stands for Secure Sockets Layer).
    All XI runtime components using the HTTP protocol support the encryption of the HTTP data stream by means of the SSL protocol, also known as HTTPS. HTTPS data streams are completely transparent to the Exchange Infrastructure.
    To enable an HTTPS connection, two steps are required:
           1.      Both parties of an HTTP connection (that is, the HTTPS client and the HTTPS server) must be technically enabled.
           2.      The internal XI communications and the messaging communications must be configured in XI to use these HTTP connections.
    In addition, for certain adapters you can enforce HTTP security for incoming messages.
    Technically Enabling SSL
    Whenever a hardware or software component is to be enabled for SSL, the client and the server part of an HTTP connection have to be enabled differently. Moreover, the technical configuration for HTTPS is different for XI ABAP and J2EE components. For more information, see Transport Layer Security.
    HTTPS comes in two flavors, both ensuring the confidentiality of data sent over the network
    ●      Server authentication
    Only the HTTP server identifies itself with a certificate that is to be verified by the client.
    ●      Client authentication
    Additionally, the HTTP client identifies itself with a certificate that is to be verified by the server.
    Hope this clears your doubts
    Thanks
    Saiyog

  • I tried to back up my music and pictures using cloud and received an error code 4001

    I tried to back up my LG G2 pictures and music using Cloud.  It promoted an error message: Verizon cloud operation failed error code 4001.
    Please help!

        It's quite important to save all your media trishee63! I'm here to help you accomplish this. Please make sure you have the feature on your account, if needed you can add it http://vz.to/1liywzM .
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • Can we capture the video and audio using cam and microphone in Edge Animate?

    Hi Everyone,
    I got a new requirement from the client to create a HTML5 based functionality through which one can capture the video and audio using his web-cam/camcorder and microphone. I have researched on internet and found that there is api available (not reliable) http://www.html5rocks.com/en/tutorials/getusermedia/intro/ . I am not a coder by profession and use Edge animate to create HTML 5 based animations and stuff like that. Another problem which i have found that the api only works well with Chrome and Opera and not with Mozilla, IE..
    Can anybody help me out in this, please...
    Thanks & Warm Regards
    Vikas

    Hi, Vikas-
    After a brief bit of research, you're definitely hitting upon the limitation of the browsers.  Not all of the browsers have implemented this part of the HTML5 standard, so you're going to either have to use Flash or be limited to these specific browsers.
    Thanks,
    -Elaine

Maybe you are looking for