HTTPS support in socket object?

Is there any support for HTTPS requests in the socket object? I know there is a BUNCH of data encryption that needs to go on and I'm not sure if indesign has anything built in to do so.

Allan wrote:
graysky wrote: Maybe Allan can do it in his spare time
no need...  falconindy has already coded a switch from libfetch to libcurl.  https support will be there once that is finished.
Oh man those pacman devs are so cool they just add features even if you don't want too 

Similar Messages

  • How to create HTTPS or secure Socket objects in JDK 1.4?

    I would like to see sample working code that shows creation
    of Sockets objects that work with HTTPS using JDK 1.4. I am doing
    a POST operation (form submission) on HTTPS URL. I must use Socket
    objects and cannot use URLConnection (I know URLConnection solves the problem automatically in JDK 1.4).
    Also sample code for POST operation would be appreciated.

    I wrote this a little while ago to test out Secure Sockets in 1.4. I assume you are doing the client since you are trying talk to a website or something like that, anyway this test class is tested and works, but you will have to clean it up.
    Pup
    import java.io.*;
    import java.security.*;
    import javax.net.ssl.*;
    public class HelloClientSSL {
        public static void main(String[] args) {
            try {
                int port = 8005;
                int tempport =0;
                if(args.length > 1) {
                    try {
                        tempport = Integer.parseInt(args[1]);
                        port = tempport;
                    catch (Exception e) {
                        System.out.println("Sorry this is not a valid number " + args[1]);
                        System.out.println("Using Default port 8005");
                Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());           
                SSLSocketFactory sslFact = (SSLSocketFactory)SSLSocketFactory.getDefault();
                SSLSocket s = (SSLSocket)sslFact.createSocket(args.length == 0 ? "127.0.0.1" : args[0], port);
                s.setEnabledCipherSuites(s.getSupportedCipherSuites());
                java.net.Socket n = (java.net.Socket) s;
                java.io.ObjectOutputStream OOS = new java.io.ObjectOutputStream(n.getOutputStream());
                BufferedReader in = new BufferedReader (new InputStreamReader(n.getInputStream()));
                String response = "";
                String temp = "This is reall cool and stuff\n";
                OOS.writeObject(temp);
                OOS.writeObject("Hello\n");
                while((response =in.readLine()) != null){
                    System.out.println("Socket message: " + response);
                in.close();
            } catch (Exception e) {
                System.out.println("Exception" + e);
                e.printStackTrace();
    }

  • InDesign CS4 / CS5 missing JavaScript Socket() object?

    If I do
    var mySocketObject = new Socket();
    socket.open("mywebsite.com:80", "BINARY")
    in Photoshop, it creates a socket object called mySocketObject, which is not null and opens the socket correctly.
    If I do the same thing in InDesign CS5, the same command fails.
    I know this works in InDesign CS3, so what does one need to do to make Socket() work in InDesign CS4/5?

    Adobe's own Javascript Tools Guide is your friend for snippets like these.
    This is from the CS4 guide, but it should work for CS5 as well:
    reply = "";
    conn = new Socket; // access Adobe’s home page
    if (conn.open ("www.adobe.com:80"))
    // send a HTTP GET request
    conn.write ("GET /index.html HTTP/1.0\n\n");
    // and read the server’s reply
    reply = conn.read(999999);
    conn.close();

  • HTTP requests by sockets rather than Bridge/Bridgetalk?

    Has anyone brought this up before? I came across this article that's an implementation of HTTP requests using sockets rather than Bridge's HttpConnection class/object, so this should execute w/o dependency on Bridge/Bridgetalk I believe. I haven't tried it out myself. Thought I'd share. Also not sure if this article was already previously mentioned somewhere within the Adobe forums.
    Script for Adobe Creative Suite/Indesign – Http Request’s GET POST with Javascript | Ivo Nascimento

    Has anyone brought this up before? I came across this article that's an implementation of HTTP requests using sockets rather than Bridge's HttpConnection class/object, so this should execute w/o dependency on Bridge/Bridgetalk I believe. I haven't tried it out myself. Thought I'd share. Also not sure if this article was already previously mentioned somewhere within the Adobe forums.
    Script for Adobe Creative Suite/Indesign – Http Request’s GET POST with Javascript | Ivo Nascimento

  • Trouble getting the socket object to work

    I'm trying to pull an external XML file into InDesign, so I know I need to use the Socket object. I went to the documentation and copied/pasted the code from there:
    reply = "";
    conn = new Socket;
    // access Adobe’s home page
    if (conn.open ("www.adobe.com:80")) {
    // send a HTTP GET request
    conn.write ("GET /index.html HTTP/1.0\n\n");
    // and read the server’s reply
    reply = conn.read(999999);
    conn.close();
    When I ran it, I received this error message:
    So, I'm stuck! Either Adobe's code sample has an error, or, more likely, there's something wrong on my end. If I had to guess, I'd guess that it's some kind of proxy problem, but I don't know for sure and don't know how to find out.
    Can anyone help? The principles of the Socket object make sense to me, but if I can't get even the sample to work, I don't really have anywhere to go with this.

    i know that's not the swf object. But I tried to use that
    little tutorial and it isn't like one size fits all. The previous
    code i used had a bunch of parameters that are not present in this
    swf object thing.
    Any advice would be great.

  • Does Java2 support raw socket programming?

    Hi,
    Does Java2 support raw socket programming? If not, are there any third-party libraries providing such support? Thanks for any comments!
    Yong

    no,
    first result on google would suggest so.
    http://www.google.com/search?q=raw%20socket%20java%20lib&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8

  • Error in SAP console - SapSSLInit failed = https support disabled

    Hi,
    I am using windows 2003 server when logged in to start the SAP console i have the below error. Please note, i have only a user level of knowledge so please help me with the resolution with a clear steps. Thanks in advance for your help
    Startup Profile: "C:\usr\sap\SB2\SYS\profile\START_DVEBMGS20_SABSB2"
    Starting Programs
    (2292) Execute: C:\usr\sap\SB2\SYS\exe\uc\NTI386\sapcpe.EXE pf=C:\usr\sap\SB2\SYS\profile\SB2_DVEBMGS20_SABSB2
    (2336) Execute: C:\usr\sap\SB2\SYS\exe\uc\NTI386\strdbs.cmd SB2
    (2512) CreateProcess: C:\usr\sap\SB2\DVEBMGS20\exe\msg_server.EXE pf=C:\usr\sap\SB2\SYS\profile\SB2_DVEBMGS20_SABSB2
    (2520) CreateProcess: C:\usr\sap\SB2\DVEBMGS20\exe\disp+work.EXE pf=C:\usr\sap\SB2\SYS\profile\SB2_DVEBMGS20_SABSB2
    (2528) CreateProcess: C:\usr\sap\SB2\DVEBMGS20\exe\igswd.EXE -mode=profile pf=C:\usr\sap\SB2\SYS\profile\SB2_DVEBMGS20_SABSB2
    Starting WebService thread
    SapSSLInit failed => https support disabled
    Webservice thread started, listening on port 52013
    Webservice named pipe thread started, listening on port
    .\pipe\sapcontrol_20

    Hello,
    Please activate SSL on the Portal again as per online help:
    http://help.sap.com/saphelp_nw04s/helpdata/de/f1/2de3be0382df45a398d3f9f
    b86a36a/frameset.htm
    The portal should be reachable via https after performing the
    steps.
    regards,
    John Feely

  • The requested action is not supported for this object. [message 131-171]

    Hi,
    One user is having the below error message appear when she attempts to print remittances. This has only started happening since yesterday and all other documents are still printing.
    "The requested action is not supported for this object. [message 131-171]"
    Any ideas what could be the problem?
    Regards,
    Mohan

    Hi Johnson,
    I have not tried your suggestion till now as I am waiting for the database copy from my client.
    Just a quick question, As I already mentioned earlier and I also keep getting the issues from the users reporting that the user's get this error only if they print 'remittance advise reports' has multiple invoices.
    The report prints fine if it has single invoice even if it is a check payment.
    Will your suggestions address this as well?
    Regards,
    Mohan

  • [b]How to convert a Socket object in a C socket file descriptor[/b]

    Hi all,
    I need to make a getsockopt() call using JNI, but I don't know how to convert a Java Socket object in the integer corresponding to the socket file descriptor.
    Thank you in advance!
    Fernando

    I was wrong in my previous post. FileDescriptor is used for PlainSocketImpl. This means I can give you a solution.
    The solution does involve rebuilding some built-in Java classes to make certain fields accessible.
    You have to modify access to three classes:
    1. You can either use my SocketGetImpl or just rebuild java.net.Socket and change from
    SocketImpl getImpl() throws SocketException {
    to
    public SocketImpl getImpl() throws SocketException {
    2. In java.net.SocketImpl change from
    protected FileDescriptor getFileDescriptor() {
    to
    public FileDescriptor getFileDescriptor() {
    3. In java.io.FileDescriptor I would add the method
    public int getFd(){ return fd; }
    Then my test program becomes:
    package myhack;
    import java.io.*;
    import java.net.*;
    public class DoSock {
            public static void main(String args[]) throws Exception{
                    Socket s= new Socket("mywebserver",80);
                    System.out.println("s="+s);
                    SocketImpl si = SocketGetImpl.getImpl(s);
                    System.out.println("si="+si);
                    FileDescriptor fd = si.getFileDescriptor();
                    System.out.println("fd="+fd);
                    System.out.println("fd int="+fd.getFd());
    }And you still have to invoke as:
    java -Xbootclasspath/p:. myhack.DoSock
    or boot path pointing at jar file, etc.

  • UCCX 8.5 https support? and Proxy support ?

    I have to perform backend request thru HTTPS in UCCX 8.5 scripting
    1) Is HTTPS supported in UCCX 8.5 ?
       I have to perform SOAP HTTPS (POST) transaction.
    2) Also to reach the backend sever we have to pass thru a Proxy server, it is possible to add proxy server information in the UCCX environnement to be able to reach the backend ?
    Has anyone done something similair ?

    I have connect to both a Trusted Root CA signed HTTPS server and a Non one too.  Obviously, if the cert is self signed, their will be additional steps required to "accept" it, but that's all within Java, and really has nothing to do with UCCX.
    UCCX can easily handle signed certs.  Take this code for example:
    String http_response = ""
    Set http_response = URL[https://www.google.com/]
    You should get back the HTML response from google.
    However, when you enter the address for a host with a self signed cert, like that of my CallManager, the editor barks.
    To get around that you will need some Java code (don't have any on tap, sorry) to accept the self signed cert.  Hopefully you don't need that.
    As for the proxy goes, I have not done this, but a quick google search yields a few promising results.
    Since you have the SOAP part working, I will assume you know how to embed Java into your script.
    Happy Scripting!
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Non-HTTP(non-web) socket connection

    how do i setup non-HTTP(non-web) socket connection on my nokia 5235? please help...wanna whatsapp so badly

    Menu » Settings » Connectivity » Settings » Network destination » Internet
    Is that set correctly? Which network operator do you use? Because some operator in different countries with different settings, do not forget to mention your country, as well.

  • Portals supported for Business Objects

    Post Author: izhar
    CA Forum: General Feedback
    Hi all members, I want to know, just like Sharepoint Portal which are other portals to connect with Business Objects. Which are other portals to be supported with Business Objects? Kindly any member guide here.
    Any link having lists of portals supported for Business Objects is welcome.
    Regards, Izhar

    Post Author: jsanzone
    CA Forum: General Feedback
    Izhar,
    I would suggest going to the Business Objects Support site and doing a search on "portal integration kit" (and before clicking on search, choose your product via the "Products:" indicator, as well as choosing the Document Types of "Kbase Articles", "Product Documentation", and "Technical Papers").

  • Github as a source for an unofficial repo? https support in pacman

    I suspect the answer is no but can pacman handle a server over https?  I'd like to use my github repo as an unofficial pacman repo, but AFAIK, I can only do so via https, not http.
    Last edited by graysky (2011-01-14 22:28:20)

    Allan wrote:
    graysky wrote: Maybe Allan can do it in his spare time
    no need...  falconindy has already coded a switch from libfetch to libcurl.  https support will be there once that is finished.
    Oh man those pacman devs are so cool they just add features even if you don't want too 

  • WVC210 - maybe I'm missing something but where is the https support ?

    From the documentation I have read their is supposed to be https support so I wouldn't need to vpn first to have a 'secure' connection.  So far I haven't seen anything in the setup referring to https.  Is it there and I am missing it or a future add on? Thanks.

    I am not really sure if HTTPS is supported by the said camera. I suggest contacting Cisco Tech support to further look into your concern. I believe this unit belongs to the business series devices that Cisco is now supporting. Try to go to this link for the other business series devices and the site where you can get hold of Cisco for support: 
    http://www.cisco.com/web/products/linksys/index.html

  • Question for get information from https site with socket.

    I had tried to send a HTTP request with socket like :
    POST http://xxx.xxx..xxx/bbs/bbsadd.php?blockid=119&title=Hello&content=Hello&clid=101&Ok=OK&s_no=0&mood=1 HTTP/1.0\r\n\r\n"
    Just like this way , I could get some information or submit any message to http site like that .
    But that was not success to get some information for visited https ( like Yahoo ) use the same way .
    I had read some document about the https protocl I knew that had to need SSL for validate .
    But what should I do as a socket program ?
    package sailing;
    import java.net.*;
    import javax.net.ssl.*;
    import java.io.*;
    public class ReceiveMail
         //private Socket toYahoo;
         private SSLSocket toYahoo;
         private SSLSocketFactory factory;
         private BufferedReader read;
         private DataOutputStream write;
         private String login;
         public ReceiveMail(String userName,String userPassword)
              try
                        //this.toYahoo=new Socket("202.43.216.165",80);
                        this.factory=(SSLSocketFactory)SSLSocketFactory.getDefault();
                        this.toYahoo=(SSLSocket)this.factory.createSocket("202.43.216.165",443);
                        //this.login="POST https://edit.bjs.yahoo.com/config/login?.src=ym&login="+userName+"&passwd="+userPassword+" HTTP/1.0\r\n\r\n";
                        this.login="POST https://edit.bjs.yahoo.com/config/login?.src=ym&login="+userName+"&passwd="+userPassword+" HTTP/1.0\r\n\r\n";
                        byte[] makeBytes=this.login.getBytes();
                        this.write=new DataOutputStream(this.toYahoo.getOutputStream());
                        this.write.write(makeBytes,0,makeBytes.length);
                        this.write.flush();
                        this.read=new BufferedReader(new InputStreamReader(this.toYahoo.getInputStream()));
                        String readRes="";
                        String webFileCode="";
                        while((readRes=this.read.readLine())!=null)
                             webFileCode+=readRes;
                        System.out.println(webFileCode);     
              catch(IOException e)
                   System.out.println(e);
         public static void main(String args[])
              new ReceiveMail("sailing","sailing");
    }================================
    If this program perform successful , I think it will print code that login Yahoo Mail success .
    But I just could get an error code .................
    Why?

    Hi,
    According to your post, my understanding is that you wanted to get information from multiple lists once a user was selected.
    There is no out of the box way to accomplish this with SharePoint.
    As a workaround, I recommend to create a list to store the user names. Then you can create relationships between lists using the browser UI. Once you select the user name in the parent list, the associated items will be displayed in the child lists.
    Here are two great articles for you to take a look at:
    http://office.microsoft.com/en-in/sharepoint-server-help/create-list-relationships-by-using-unique-and-lookup-columns-HA101729901.aspx#_Toc270607416
    http://msdn.microsoft.com/en-us/library/ff394632.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for