HTTP over UDP?

Has anybody done this before?? could you provide me with some links? And one very basic question, does HTTP expect any information from TCP with respect to acknowledgment and all those stuff or everything handles by TCP??
Thanx

Though I'd say that in the real world, the packet size
should be smaller because of the limitations of
transmission. As a packet that size will have to be
broken up to fit even over ethernet.If IP fragmenting is enabled such a large UDP packet might work. However most UDP applications that I have seen keep the total packet size to somewhat less than 512 bytes to avoid fragmenting and the problems associated with hosts that cannot handle it. If you are on an all ethernet network you should be able to use up to the size limit of ethernet packets (I forget the exact number but it is about 1400 bytes) minus the headers.
HTTP really requires a bi-directional stream (which TCP gives you) for a full implemtation. However some technologies (like uPnP) run a restricted subset of HTTP over UDP.

Similar Messages

  • ACE and RTSP over UDP

    I have a VIP that is not able to stream RTSP over UDP. TCP streaming works fine, but when I configure UDP on the Real client no UDP packets are even processed by the ACE.
    When I configure 'inspect rtsp' on the class, then TCP streaming also breaks. I am using A2.10.
    Anyone got any hints on where I am going wrong ?
    Greg
    class-map match-all stream._rtsp554_vip
    2 match virtual-address 10.216.35.75 tcp eq rtsp
    class-map match-all stream._udp6970_vip
    2 match virtual-address 10.216.35.75 udp eq 6970
    policy-map type loadbalance first-match stream._rtsp554_vip-l7slb
    class class-default
    serverfarm stream._rtsp554_sfarm
    policy-map type loadbalance first-match stream._udp6970_vip-l7slb
    class class-default
    serverfarm stream._UDP_sfarm
    class stream._rtsp554_vip
    loadbalance vip inservice
    loadbalance policy stream._rtsp554_vip-l7slb
    loadbalance vip icmp-reply active
    nat dynamic 1598 vlan 1598
    class stream._tcp8080_vip
    loadbalance vip inservice
    loadbalance policy stream._tcp8080_vip-l7slb
    loadbalance vip icmp-reply active
    nat dynamic 1598 vlan 1598
    class stream._udp6970_vip
    loadbalance vip inservice
    loadbalance policy _udp6970_vip-l7slb
    loadbalance vip icmp-reply active
    nat dynamic 1598 vlan 1598

    I have never got a chance to play with ACE + RTSP over UDP but
    As per
    http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A2/configuration/slb/guide/classlb.html#wp1165238
    ACE supports RTSP over TCP Loadbalanacing only.
    Similarly for RTSP Inspection its clearly stated at
    http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A2/configuration/security/guide/appinsp.html#wp1318637
    For RTSP inspection
    The ACE supports TCP only in conformity with RFC 2326.
    HTH
    Syed Iftekhar Ahmed

  • VOICE over UDP need some help here

    I have attached a vi i have been working on and i am having a litte trouble.  I want to do somethink like voice over ip.  Currently i have a setup that broadcasts the data to a client.  The mic is sent over udp to the clients speakers and vice versa. I ingore anything that comes from one's one ip address.  This works just great,  but the problem is i need more than 2 on at a time.  I dont want to mess with entering specific ip address ect. At most i only want to have to enter ones own ip address as i have in the example.  
    When i start running 3 of these vi's on separate machines, i can probe the address which the data is being received, and it seems to only get data from one address, not two like i would expect.  Is there a buffer being cleared when read or something?   Any help would be appreciated.
    Thanks
    Dave
    Attachments:
    UDPVOICE.vi ‏70 KB

    Here is how I have dealt with the port problem in the past (albeit, not
    in labview, but lets hope LabView's usage of UDP is consistent with
    other programming languages ) is you always have clients connect to
    a listen port on the server.  You will have a thread watching for
    incoming connections on that port.  When one is detected, you
    create a new "personalized" connection for that client to use to
    communicate with the server.  Part of this process involves
    assigning that conenction a new port.  This assignment is
    dynamic--the server just assigns some random available port (so in
    other words, you don't have to hard code one in).
    So once a client connects, the server responds from the new port, the
    client receives that datagram and checks where it came from (address
    and port) and sends all future messages to that port on the server.
    Does this make sense?  I'm afraid I won't be much help with
    anything aside from theory as I haven't actually played with the
    network functionality in labview--all my network programming comes from
    C and Java. 
    As to combining the sounds, I'm afraid I don't know.  I think the
    simplest system would be a half-duplex system whereby clients can only
    send data when they are not receiving it (or rather, 1 person talks at
    a time).  I can understand how this isn't ideal.  I wonder
    how this is accomplished in other, similar voice-chat programs?
    One final thought: I'm not sure, but I'd be willing to make a wild stab
    in the dark and say you might run into bandwidth problems if you're
    transmitting an unencoded (uncompressed) voice signal.  This is
    undoubtably more complex than you want to get, but you might look
    around for ways to reduce the amount of bandwidth you're going to
    use.  And if you'd like examples of programs that will allow this
    kind of chat go check out Teamspeak (http://www.teamspeak.org/) or
    Skype (http://www.skype.com/).  Both these programs allow
    multiuser voice chat (teamspeak is intended for chatting with your team
    in video games).  Skype is a very professional, very high quality
    voice chat program that works more or less the same, with higher
    quality voice.  Oh and both are free
    --R

  • Is there way to set tofirefox4 to always use https over http?

    is there way to set tofirefox4 to always use https over http? instead of getting the message if i want to go to https site instead of http site, is there a way so that firefox will notify me if there isn't a https site instead?

    *Force-TLS: https://addons.mozilla.org/firefox/addon/force-tls/
    *STS UI: https://addons.mozilla.org/firefox/addon/sts-ui/
    *HTTPS Everywhere: http://www.eff.org/https-everywhere

  • SA520: problem when trying to access HTTPS over custom port in a site-to-site vpn

    We've set up a site-to-site VPN between our SA520 and our SmoothWall running at our data center. The tunnel is always connected, so that part runs fine
    What works fine:
    - Client 192.168.11.1 is able to start an RDP session (on it's default port 3389) to server 192.168.3.5
    - Client 192.168.11.1 can open a webpage which is hosted on server 192.168.3.5 (hosted on the default HTTP port 80)
    What doesn't work:
    - Client cannot open web page which is hosted on server 192.168.3.1 at the following url: https://192.168.3.1:441
    - or, for that matter, any https service in the 192.168.3.x LAN which runs on a different port
    To summarize:
    from the 192.168.11.x subnet, accessing services running on default ports (i.e. 80, 3389, 21) in the 192.168.3.x subnet works fine. doing the same for services running on custom ports (i.e. https over port 441) the connection to the webserver times out.
    Thanks in advance for any help you may provide.
    Glen

    hi luis,
    thank you for your reply. we've checked the smoothwall configuration, but couldn't discover anything which could cause this problem. we even tried replacing the sa520 with a draytek vigor router to set up an lan-to-lan vpn with the smoothwall. with the draytek in place we have no problems accessing the aforementioned servers, so it seems the issue is with the SA520.
    what exactly do you mean by creating an ACL from the remote WAN to our LAN? i assumed you meant creating a firewall rule, allowing traffic from the remote device's public ip to our LAN. however, in that case i need to enter an ip address of a device in our LAN, or else i cannot save this rule. as a test i entered the ip address of my machine as the destination address, but am still unable to access the aforementioned servers.
    here's how i set up the rule:
    from zone: UNSECURE (WAN/optional WAN)
    to zone: LAN
    service: ANY
    action: ALLOW always
    schedule: (not set)
    source hosts: Single address
    from: public ip of one of the aforementioned servers
    source NAT settings > external IP address: WAN interface address (cannot change this setting)
    source NAT settings >WAN interface: dedicated WAN (cannot change this setting)
    destination NAT settings > internal ip address: 192.168.11.123 (ip address of my machine)
    enable port forwarding: unchecked
    translate port number: empty
    external IP address: dedicated WAN

  • Mail HTTP over RPC setting

    I just bought a new iMac... and have question with my mail set up.
    My company use MS exchange server with HTTP over RPC setting. They gave me a list of Exchange Server name, http:// ......, msstd:.... it works fine in my old PC Outlook and I don't know how to set this up in my new iMac. I can't found those option in iMail or Entourage mail account setting. Help!!!
    Thanks

    Apple Mail does not support RPC over HTTP. Entourage does not either, however, I think I saw something about using WebDAV in Entourage to get the same type of functionality. Is IMAP configured on your exchange servers? You can ask the IT group.

  • Sending voice over UDP with JavaSound

    Hello,
    do anybody know how to send voice over UDP?. I have .wav files and I want to send them over UDP. If you have an example of this, send me it please. All the examples that I have seen only send one or to lines of text, but I need to know if I should convert the frames to bytes to be sent.
    Thank your help

    Hello,
    do anybody know how to send voice over UDP?. I have .wav files and I want to send them over UDP. If you have an example of this, send me it please. All the examples that I have seen only send one or to lines of text, but I need to know if I should convert the frames to bytes to be sent.
    Thank your help

  • Enable HTTP Over SSL: New documentation

    Hi,
    Fyi, a new article has been published in the CQ5.5 documentation:
    Enabling HTTP Over SSL
    hope that helps 
    scott

    Enable ssl for HTTP
    In the administration guide, you shoud find this
    you have to modify ssl.conf to enable ssl, as well in th eopmn.xml there is an option for enable ssl. but more accurant check the guide.
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13995/sslmid.htm#CHDDGBGF

  • SIP over UDP routing in Cisco 3845

    dear friends,           
    How can we configure the SIP over UDP protocol by Cisco 3845 router?
    For more details please fine the attachment.

    Yes I tried but that is not helpful for me
    How can I contact those people (engage a reputable consultant, or Cisco partner)?
    Also I tried this commands in below.
    voice class codec 1
    codec preference 1 g711alaw
    dial-peer voice 3250 voip
    destination-pattern 3250
    session protocol sipv2
    session target ipv4:10.156.67.6
    session transport udp
    codec g711ulaw
    sip-ua
    retry invite 2
    retry response 2
    retry bye 2
    retry cancel 2
    no inband-alerting
    sip-server ipv4:10.156.67.6
    ip classless
    ip route 0.0.0.0 0.0.0.0 10.157.67.1
    ip route 10.157.67.0 255.255.255.0 10.167.67.225 
    access-list 101 permit ip host 10.156.67.1 host 10.156.67.100
    access-list 101 deny   udp any eq rip any
    access-list 101 deny   udp any any eq rip
    access-list 101 deny   udp any eq isakmp any
    access-list 101 deny   udp any any eq isakmp
    access-list 101 permit ip any any
    snmp-server engineID local 000000090200003094202740
    snmp-server community public RW

  • Send audio data over UDP

    Hello again,
    Sorry for asking a lot of questions, but I'm developing an application in jmf and I don't know so much how it works...
    I'm trying to receive rtp data from the network, then uncompress to RAW format (but it has to be coded in some codec like g711, g729 or GSM) and save it into a buffer. For this I'm following the example DataSourceReader. I have attached some things like keep off the rtp header, and save the audio data into a bytebuffer (instead of using the printInfo() method I'm using saveIntoByteBuffer() method).
    Another class is sending the data (saved in byteBuffer) over the network (UDP, not RTP-UDP).
    And anotherone is receiving this data, and creating a DataSource to play the audio data received.
    To do this, I don't know exactly how to do it. I need to create a DataSource like the examples (LiveStream and DataSource from [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/LiveData.html |http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/LiveData.html] ) or can I do it like JpegImagesToMovie from [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html] ?
    Sorry if it's an easy question, but I don't understand so much why implementing the 'same' thing (custom DataSource) it's implemented different.
    Thanks

    Sorry if it's an easy question, but I don't understand so much why implementing the 'same' thing (custom DataSource) it's implemented different.They aren't the same thing, actually. DataSource is the parent class, but there are 2 different kinds of DataSources.
    A PushBufferDataSource will "push" the data out when it's available to be read. Whenever it decides it has data ready to be read, it informs whatever is reading from it that data is available.
    A PullBufferDataSource will not do that. Whenever it has data ready to be read, it doesn't do anything to inform what's reading from it.
    The next obvious question is, why does it matter?
    PullBufferDataSource's are good for situations where the data is always present. For instance, if you're playing a file from your hard drive, it's better to just let your Player object fetch data when it's needed. There's no need for a "data available" event, because, the data is always available...
    PushBufferDataSources are good for situations where data is being generated / received from an outside source. You can't read from it until the data comes in, so rather than blocking and waiting for the read, it'll tell your reader class when to come back for the data.
    Hope that helps!
    P.S. For your needs, you'll want to be using a PushBufferDataSource, so the Live example code.

  • AE with inbound SIP and RTP over UDP - Will not open ports

    I am using a Linksys SPA962 IP Phone via an Airport Express with the latest firmware connecting to an Asterisk PBX (http://www.asterisk.org) over the internet. I may make outbound calls and have my incoming and outgoing audio over RTP with the appropriate UDP ports no problem. But, when I receive an inbound call, I get the SIP INVITE no problem, but the AE refuses to open those RTP ports. I have NAT keep alive at 15 seconds.
    Now, I have tried almost every combination. Enabling NAT-PMP forwarding to all of the appropriate IP/Ports, turning it off (really should not be necessary with keep alive on register with the Asterisk). I am stumped, it is almost as of AE does not like UDP for inbound. I have others using Linksys routers with a similar configuration working inbound and outbound no problem.
    I am stumped. Ideas? Chuck the AE in the bin?

    I Googled up the following:
    http://lists.apple.com/archives/Macnetworkprog/2006/Jul/msg00040.html
    I am having this issue:
    http://discussions.apple.com/message.jspa?messageID=7256265#7256265
    Are all these things the same issue?
    My ISP "tells me" that they will not allow more than one IP address per account. I have a basic cable modem i.e. not a router. Its a D-Link DCM-202. I have been told to try a level-2 switch but I can't see how that will work. As far as I can see the DCM-202 cable modem is bridging to my AEBS so that is allocated the WAN IP address by the ISP's DHCP server. Does this sound right?
    I'd like to create an actual DMZ but since my cable modem only has one port I can't see how I can do that unless I use 2 routers. If I try this I am expecting that I'd have complicated port forwarding configurations no?

  • RMI over UDP?

    Is it possible to setup RMI so that it runs on top of UDP as opposed to TCP? I think this may be beneficial to getting around firewall issues ...
    Cheers.

    RMI is built on top of Java's object and class facilities, its objects serialization protocol and its TCP/IP networking support, so its not possible to run it ontop of UDP.
    In order to get around firewalls there are however certain techniques available like
    HTTP tunnulling
    Direct forwarding over HTTP
    Indirect forwarding
    or using RMI proxy which supports most of teh firewall configurations.

  • HTTPS over a Proxy!! Set up of username/password

    I am transferring over https to a receving servlet over a Proxy.
    How do I specify the username and password for the Proxy in my
    application ,if the proxy server supports this.
    I have configured my application to send it over a Proxy with:
    https.proxyHost = <Proxy Host>
    https.proxyPort = 0000
    or
    System.setProperty("https.proxyHost","Proxy Host");
    System.setProperty("https.proxyPort","8080");
    How can I set the Property for Username and Password too?
    Please does any one know this?
    ajay
    [email protected]

    Or you could use the Authenticator class
    in JDK.
    class MyAuth extends Authenticator {
        protected PasswordAuthentication getPasswordAuthentication() {
            System.out.println("The realm '" + getRequestingPrompt() +
                "' at '" + getRequestingHost() + ":" + getRequestingPort() +
                "'\n" + "using " + getRequestingProtocol() + " is requesting " +
                getRequestingScheme().toUpperCase() + " authentication.");
            System.out.println("");
            System.out.println("What should we send them?  Let's send them ...");
            System.out.println("");
            return new PasswordAuthentication("username", "password".toCharArray());
            // set to the authenticator you want to use.
            Authenticator.setDefault(new myAuth());
            URL url =
                new URL("http://www.some.com/something_protected/index.htm");

  • HTTPS over SSL

    Hi!
    I1ve been experimenting with SSL and weblogic. I run the following code to
    retrieve an HTML page.
    public static void main(String[] args) throws Exception {
    java.security.Security.addProvider(new
    com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.ww
    w.protocol");
    System.setProperty("javax.net.ssl.trustStore","C:\\Documents and
    Settings\\tdevos\\.keystore");
    URL ssl = new URL(args[0]);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    ssl.openStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null)
    System.out.println(inputLine);
    in.close();
    Everything goes fine over a non HTTPS connection. E.g. when I type in
    java myApp http://localhost:7001
    everything goes fine. However when I run
    java myApp https://localhost:7002
    I get the following error:
    Exception in thread "main" java.io.IOException: HTTPS hostname wrong:
    should be <localhost>, but cert says <weblogic.bea.com>
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
    198])
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
    198])
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
    198])
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([Dash
    oPro-V1.2-120198])
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStrea
    m([DashoPro-V1.2-120198])
    at java.net.URL.openStream(URL.java:798)
    I imported the weblogic key in the correct way (I think ...)
    keytool -import -trustcacerts -keystore "C:\Documents and
    Settings\tdevos\.keystore" -file democert.pem
    I understand that he expects weblogic.bea.com instead of localhost but what
    I don`t understand is that the example works when I rewrite my code to the
    following:
    System.setProperty("javax.net.ssl.trustStore", "C:\\Documents and
    Settings\\tdevos\\.keystore");
    SSLSocketFactory factory =
    (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket)factory.createSocket("localhost", 7002);
    socket.startHandshake();
    PrintWriter out = new PrintWriter(
    new BufferedWriter(
    new OutputStreamWriter(
    socket.getOutputStream())));
    out.println("GET http://localhost/ HTTP/1.1");
    out.println();
    out.flush();
    if (out.checkError())
    System.out.println("SSLSocketClient: java.io.PrintWriter error");
    /* read response */
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    socket.getInputStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null)
    System.out.println(inputLine);
    in.close();
    out.close();
    socket.close();
    This is also NOT the way I want to write my code because I`m planning to do
    SOAP calls over the SSL.so I can`t simply use the GET method.
    In my opinion I should tell weblogic to use another private key than the one
    in the delivered. But how can I make a private key on my own?
    Is there a way to export a private key with the standard java keytool and
    how can I tell weblogic to use it? If can get rid of the error
    Exception in thread "main" java.io.IOException: HTTPS hostname wrong:
    should be <localhost>, but cert says <weblogic.bea.com>
    then everything is fine!
    Thanks in advance for replying
    Tim De Vos

    You can try to abuse the attached code to get your stuff work. Note do not try HTTPS
    POST with Weblogic 6 now. The key point here is the DummyHostnameVerifier. You should
    not use such method in your production code.
    import java.io.*;
    import java.net.*;
    import com.sun.net.ssl.*;
    import javax.net.ssl.*;
    import java.security.*;
    public class TestHttpsURL{     
         public static void main(String[] args){
    SSLContext ctx;
    //KeyManagerFactory kmf;
    KeyStore ks;
    try{
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
              //ctx = SSLContext.getInstance ("SSL");
              KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509", "SunJSSE");
              TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509", "SunJSSE");
    ctx = SSLContext.getInstance ("SSL");
         ctx.init (kmf.getKeyManagers(), X509TrustManagerImpl.getTrustManagers("SunX509",null),
    null);
         SSLSocketFactory factory = ctx.getSocketFactory();
         String msg = "USERID=user&PASSWORD=password";
    HttpsURLConnection conn = (HttpsURLConnection)(new URL("https://localhost:7002/PostTest.jsp")).openConnection();
    //URLConnection conn = (new URL("http://localhost:7001/PostTest.jsp")).openConnection();
    conn.setDefaultSSLSocketFactory(factory);
    conn.setSSLSocketFactory(factory);
    conn.setHostnameVerifier(new DummyHostnameVerifier());
    conn.setDoOutput(true);
    conn.setDoOutput(true);
    conn.setRequestProperty("Content-Length", String.valueOf(msg.length()));
    conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    conn.setRequestProperty("Accept", "image/gif, image/x-xbitmap, image/jpeg,
    image/pjpeg, application/msword, application/vnd.ms-powerpoint, application/vnd.ms-excel,
    conn.setRequestProperty("Accept-Language", "en-us");
    conn.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE
    5.01; Windows NT 5.0)");
    conn.setRequestProperty("Host", "localhost:7002");
    OutputStream out = conn.getOutputStream();
    out.write(msg.getBytes());
    out.flush();
    byte[] resp = new byte[1024];
    int len;
    BufferedInputStream in = new BufferedInputStream(conn.getInputStream());
    while((len = in.read(resp))>0){
    System.out.print((new String(resp,0,len, "8859_1")));
    }catch(Exception ex){
    ex.printStackTrace();
    class DummyHostnameVerifier implements HostnameVerifier{
    public boolean verify(String urlHostname, String certHostname){
    return true;     
    "Tim De Vos" <[email protected]> wrote:
    Hi!
    I1ve been experimenting with SSL and weblogic. I run the following code
    to
    retrieve an HTML page.
    public static void main(String[] args) throws Exception {
    java.security.Security.addProvider(new
    com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.ww
    w.protocol");
    System.setProperty("javax.net.ssl.trustStore","C:\\Documents and
    Settings\\tdevos\\.keystore");
    URL ssl = new URL(args[0]);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    ssl.openStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null)
    System.out.println(inputLine);
    in.close();
    Everything goes fine over a non HTTPS connection. E.g. when I type in
    java myApp http://localhost:7001
    everything goes fine. However when I run
    java myApp https://localhost:7002
    I get the following error:
    Exception in thread "main" java.io.IOException: HTTPS hostname wrong:
    should be <localhost>, but cert says <weblogic.bea.com>
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
    198])
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
    198])
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
    198])
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([Dash
    oPro-V1.2-120198])
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStrea
    m([DashoPro-V1.2-120198])
    at java.net.URL.openStream(URL.java:798)
    I imported the weblogic key in the correct way (I think ...)
    keytool -import -trustcacerts -keystore "C:\Documents and
    Settings\tdevos\.keystore" -file democert.pem
    I understand that he expects weblogic.bea.com instead of localhost but what
    I don`t understand is that the example works when I rewrite my code to the
    following:
    System.setProperty("javax.net.ssl.trustStore", "C:\\Documents and
    Settings\\tdevos\\.keystore");
    SSLSocketFactory factory =
    (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket)factory.createSocket("localhost", 7002);
    socket.startHandshake();
    PrintWriter out = new PrintWriter(
    new BufferedWriter(
    new OutputStreamWriter(
    socket.getOutputStream())));
    out.println("GET http://localhost/ HTTP/1.1");
    out.println();
    out.flush();
    if (out.checkError())
    System.out.println("SSLSocketClient: java.io.PrintWriter error");
    /* read response */
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    socket.getInputStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null)
    System.out.println(inputLine);
    in.close();
    out.close();
    socket.close();
    This is also NOT the way I want to write my code because I`m planning to
    do
    SOAP calls over the SSL.so I can`t simply use the GET method.
    In my opinion I should tell weblogic to use another private key than the
    one
    in the delivered. But how can I make a private key on my own?
    Is there a way to export a private key with the standard java keytool and
    how can I tell weblogic to use it? If can get rid of the error
    Exception in thread "main" java.io.IOException: HTTPS hostname wrong:
    should be <localhost>, but cert says <weblogic.bea.com>
    then everything is fine!
    Thanks in advance for replying
    Tim De Vos

  • I'm using a 1D Arrary with 27 different elements and would like to send those data over UDP Write and UDP Read functions.

    I'm using a 1D array with 27 different elements. I would like to transfer that data over a UDP connection, and read it back by using UDP connections.
    But I would like to read 3 elements at a time (On read side) and send those to 9 different ports.
    Note: the data will go to only one PC with one Network Address)
    * 1st elements (0,1,2) and send to port #XXX to see those 1st 3 elements.
    * continue until the elements reaches up to 27
    This is what I have done but I'm finding myself in pitfalls...
    Send side:
    I'm using a UDP Open connection on send side to send my data. So with selected a Source Port, I have created a UDP Op
    en connection. I�m using only one source port to send all the data across the channel. I would like to read 1st 3 elements and send those data across with an assigned Destination port. I would like to do that for 9 times b/c there are 27 elements in the array. So I�m using a For Loop and setting N count to 9. So I�m not getting any errors when I execute and no answer on the other side at all.
    Read side:
    I�m using a UDP Open connection to read in the data with port #. I�m using while loop to with Boolean inside by making a true all the time. Inside that While loop, I�m using For Loop to read the 3 elements data a time and send to a right port address. (As start out I was just trying to see if it works for only one port).
    Attachments:
    UDP_SEND_1.vi ‏40 KB
    UDP_READ_1.vi ‏31 KB

    You are not getting any errors because UDP is a connectionless protocol. It does not care if anyone receives it. Your example will work fine with the following considerations.
    (1) Don't use the generic broadcast address (255.255.255.255).
    (2) You are listening on port 30000. So why are you sending to port 1502, nobody will receive anything there.
    The destination port of the outgoing connection must match the server port of the listener. (The source port is irrelevant, set ot to zero and the system will use a free ephemeral port).
    (3) On the receiving side, you are not indexing on the received string, thus you only retain the last received element. Then you place the indicator outside the while loop where it never gets updated. :-(
    (4) Do yourself a favor and don't micromanage how the data is sent across. Just take the entire array, flatten it to string, send it across, receive it, unflatten back to array, and get on with the task.
    (You can do the same with any kind of data).
    I have modified your VI with some reasonable default values (destination IP = 127.0.0.1 (localhost)), thus you can run both on the same PC for testing "as is". Just run the "read" first, then every time you run "send", new data will be received.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    UDP_READ_1MOD.vi ‏29 KB
    UDP_SEND_1MOD.vi ‏27 KB

Maybe you are looking for