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

Similar Messages

  • Is there a restriction on length of Http request posted to a Iplanet Web Server ?

    I am submitting an Http Request by POST method to my server. The request will be received and forwarded by Iplanet Web Server to a clustered Weblogic environment, which will then be handled by Java Servlets. The problem I am facing is that when the length of the request shoots up to around 2000 bytes, NES doesn't receive and forward the request to Weblogic. There is no fixed cut-off for the length, it keeps fluctuating.
    I observed the following after hitting the server hundreds of times with Http Requests that vary in length.
    1) If length of Request is below 1500 bytes, request always goes through successfully.
    2) In a range of 1500 bytes to 2000 bytes, request fails most of the times. (Around 80 %)
    3) Requests with length above 2000K invariably fail, though it just worked for a 2.4K request on one occasion (out of some 100 hits)
    Note that by "length of request", I mean the data I post through Http Request (I just have a single parameter in Http request having the literal "XML" as key and a well formed XML document as value. That is equivalent to submitting a HTML form just having a text area called "XML" containing a XML document. )
    I presume that the length of actual Http Request is slightly greater than that of XML (probably by around 100 bytes).
    My Iplanet documentation says that the upper limit on the length of a POST Http Request is 64 K, which is way above the value (2-3 K) at which I am facing the problem.

    Hi Ganesh
    Did you check the HTTP Persistent timeout of your server? Check the value which has been set up by default. Try increasing the timeout value and try again.
    follow these steps it might solve your problem:
    (1)Goto Web Server Administration Server, select the server you want to manage.
    (2)Select Preference >> Perfomance Tuning.
    (3)set HTTP Persistent Connection Timeout to your choice (eg 180 sec for three minutes)(note : if you are posting large amount of data or file increase the value accordingly)
    (4) Apply changes and restart the server.
    *Setting the timeout to a lower value, however, may    prevent the transfer of large files as timeout does not refer to the time that the connection has been idle. For example, if you are using a 2400 baud modem, and the request timeout is set to 180 seconds, then the maximum file size that can be transferred before   the connection is closed is 432000 bits (2400 multiplied by 180)
    If this doesnot solve your problem notify me
    regards
    T.Raghulan
    [email protected]

  • 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

  • Seeing desktop rather than iSight's output: feature request

    I know these forums aren't really for discussing wanted features, but I figure if enough people like and request this idea, then perhaps Apple will implement it.
    It would be helpful if there was an option enabling each computer to see the other person's desktop rather than the signal from the iSight camera. The signal would have to be constantly updated, or live. The cursor should also appear.
    This would make it really easy to troubleshoot problems while communicating over iChat.
    Any other ideas how this feature could be used or improved?
    Apple's feedback:
    http://www.apple.com/feedback/ichat.html

    You can do this today with the iChatUSBCam add-on (try-before-you-buy.)
    More info at msg # 2 in iSight projects image of desktop only.
    ShowMacster may also be of interest.

  • A new socket for every http-request?

    Do I have to make a new socket for every http-request? The code below doesn't work because it is two requests in a row. The first GET works, but the second doesn't. I thought that the purpose of a socket is that you set it up once and then you should be able to do arbitrary communication between the two peers. Maybe that is just the case with sockets only but not if you use sockets to perform http.
    Thank you for your answers! Nice greetings from Austria (not Australia)!
    Stefan :)
    package httptest;
    import javax.net.ssl.*;
    import java.io.*;
    import java.net.*;
    public class Conn2 {
        private PrintWriter out;
        private BufferedReader in;
        private Socket socket;
        public Conn2()
            try {
             socket = new Socket("www.google.at", 80);
             out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));         
             if (out.checkError())
              System.out.println("SSLSocketClient:  java.io.PrintWriter error");
             in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                System.out.println("Connect erfolgreich.");
         } catch (Exception e) {
             System.err.println(e);
        public void test()
            String inputLine;
            // 1. GET
            out.println("GET / HTTP/1.0");
         out.println();
         out.flush();
         try
                while ((inputLine = in.readLine()) != null)
                    System.out.println(inputLine);
            catch(IOException e)
                System.err.println(e);
            // 2. GET
            out.println("GET / HTTP/1.0");
         out.println();
         out.flush();
            try
                while ((inputLine = in.readLine()) != null)
                    System.out.println(inputLine);
            catch(IOException e)
                System.err.println(e);
    }

    Normally in the HTTP protocol, the server will close the connection after every request. So after you do the first GET, the server sends you the result and closes the connection. You have to open a new connection for the second GET.
    You can set specific headers to keep the connection open, which makes things faster if you have to do multiple GET's quickly after another. Lookup the specification of the HTTP protocol on http://www.ietf.org/
    Maybe it's easier to use a HTTP client library like Apache's HTTPClient: http://jakarta.apache.org/commons/httpclient/ so that you don't have to implement all the difficulties of the HTTP protocol yourself.

  • Bridge auto opens PS CS6 rather than CC

    I just upgraded from Photoshop CS6 to CC.  When using the Tool Menu in Bridge, to perform a step in Photoshop (for example, create a Contact Sheet or Image Processor), my older version CS6 of Photoshop automatically opens to perform the function, rather than the newer version of CC.  How do I change that?

    Search Microsoft – Official Home Page to learn how to set Windows program assocations

  • When do you need Internet Tethering rather than Blackberry Bridge?

    I've been using my new Playbook Bridged to my Bold 9700 since I got it. Since I've been able to get to every site I wanted to get to on the browser all of this time using the Bridge, I didn't even know about Tethering.
    Today I was attempting to setup some new email addresses to the Playbook, and it said that it couldn't do it till I enabled the Internet Tethering option. The tethering would occur to the same Bold 9700 anyways that it is currently Bridged to. So what are the times that Tethering is required rather than the Bridge?
    Solved!
    Go to Solution.

    Bridge mode works as an extension of the phone. Browsing with tether gives greater speed and better stability especially with sites that stream or load with a lot of data.
    Tethering uses the phone as a mobile modem rather than a pass through data device. When bridged the tablet is read back as if it is a phone rather than a stand alone tablet computer type device. In the bridge mode some sites may appear as if for a mobile phone rather than for a tablet or computer.
    My preference is to use tethering whem web browsing. I use the bridge mode mainly for email, schedules, and PDA type functions.
    Jerry G.
    Jerry G.

  • I'v just installed creative cloud 64 bit windows. How can I make bridge the default program to upload pictures rather than lightroom?

    I've just installed creative cloud 64 bit windows.  How can I make bridge the default program to upload pictures rather than lightroom?

    Usually the default program associated with an image file extension is an image developing Program like Lightroom or an image editing program like Photoshop. If you want to change the default associated program to Adobe Bridge you would use Window's Controls Panel file association applet.

  • Can I only bridge my network, rather than extending it?

    I have an airport extreme, which I'm trying to use as a bridge for the wired devices in my entertainment system for HD streaming.  It mostly works, but has problems with multiple devices are active on the network.   The other end of the connection is a current model Time Capsule.  The Extreme is a previous generation (the flat style).
    What I really want is only a bridge, but the option in the Airport utility is to "Extend a wireless network".   So, clients connect to the airport in the living room rather than the access point farther away.
    Can this be controlled?

    Unfortunately, if you try to configure the AirPort Extreme to operate only as a bridge (Join a wireless network)...and not an extender....the Ethernet ports are not enabled on the device in that type of configuration, so it is virtually useless in that regard.
    Try to minimize the obstructions in the wireless signal path between the Time Capsule and AirPort Extreme as much as possible. Ideally, you want line-of-sight between the devices.
    Ironically, a less expensive AirPort Express can be configured to "join" a wireless network....and....the Ethernet port is enabled when you do this.
    The only way to try to control what device that computers connect to is temporarily turn off the WiFi on a Mac or iOS device, move it near the wireless access point and turn the WiFi back on to see if the device will pick up a signal from the closest and strongest access point.
    Actually, a Mac laptop will usually automatically switch access points as it moves from one area to another and pick up the best signal from the closest access point, but iOS devices like the iPhone and iPad will not usually do this, since they have much simpler operating systems.

  • Bridge opening all .jpg in after effects rather than photoshop

    I briefly used after effects earlier today and now bridge is opening all .jpg in after effects rather than photoshop. Photoshop is set as the defult and I've tried resetting preferences etc but it continues to open in after effects having to right click and opening with on every image! How can I change this back to using photoshop?

    The folder view is as normal but as you can see below at the very top of bridge rather then just having the directory name it now says "Opening in Adobe After Effects..

  • Is it possible to have cs5 Bridge open cs4 ai files actually in cs4 rather than opening them in cs5

    I recently upgraded from mac cs4 to cs5.5. Due to a bug? with cs5 ai illustrator 'Pixel Preview' won't show 1 bit tiff files as it did in cs4 (the workaround is time consuming/wasting). This is a problem for me as most of my files contain them, GGrrrr. Is it possible to have cs5 Bridge open cs4 ai files actually in cs4 rather than opening them in cs5?

    Is it possible to have cs5 Bridge open cs4 ai files actually in cs4 rather than opening them in cs5?
    Yes, either set the file type association in Bridge prefs for 'ai' at CS4. But it seems somewhat difficult when having newer versions, sometimes whatever pref settings in Bridge or Finder/get info/ open with/you try it keeps opening in the latest version.
    In that case either drag and drop the files on the CS4 icon in the dock or with right click mouse menu choose open with and select illustrator CS4.
    Although you can only have one version of Bridge open at the time you can have the other suite applications from different version open at the same time.

  • [svn:fx-trunk] 16037: Per request of TLF, rewrote CSSTextLayoutFormat to extend TextLayoutFormat rather than implement ITextLayoutFormat .

    Revision: 16037
    Revision: 16037
    Author:   [email protected]
    Date:     2010-05-11 11:55:08 -0700 (Tue, 11 May 2010)
    Log Message:
    Per request of TLF, rewrote CSSTextLayoutFormat to extend TextLayoutFormat rather than implement ITextLayoutFormat.  This will allow TLF to add new formats and continue to use Flex without requiring any immediate work on our part.
    QE notes:
    Doc notes: None
    Bugs:
    Reviewed By: Gordon
    Tests run: checkintests
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/CSSTextLayoutFormat.as

  • When my swf in a html page connected with a socket server other http requests were blocked, how to resolve?

    I have used php to write a socket server(text chat server),
    then I use xmlsocket to write a client, I put this swf file in my html page, erverything of this client swf were ok: ervery clients could send or receive messages, but the other http request in this html page was unable to send(or receive) data from webserver,
    webserver and chat server were on the same server,
    and I have tried to use socket to instead if xmlsocket in my flash, but the new swf can only work in flash cs3, but it couldn't work in html page as the chat server can't send the security xml file to this swf, and I have also use Security.loadPolicyFile("http://192.168.139.128/crossdomain.xml"); to load security file, but it took none effect.
    Is there anyone can suggest me ?
    That's very kind of you!

    Hi Franco,
    Yes, I solved that by reinstalling Java 6 Update 21.
    There are three versions for Solaris namely, SPARC, x64 and x86. Our platform is SPARC and I think System admin has installed the wrong version instead of installing SPARC version of Java.
    After installing SPARC version of Java this got resolved. And I confirmed everything is fine by running a small program as below. You can run this program from command line using the -d64 flag. If the installation is wrong you will get the same exception as I mentioned.
    public class Analyzer {
          public static void main(String args[]) throws Exception{
               InputStream fin = new FileInputStream(args[0]);
               int iSize = fin.available();
               byte mvIn[] = new byte[iSize];
               fin.read(mvIn,0,iSize);
               fin.close();
               String strText = new String(mvIn);
               PrintStream fout = new PrintStream(new FileOutputStream(args[0]+".csv"));
               fout.println("Before,After,Seconds");
               Pattern p = Pattern.compile("\\[(?:Full |)GC (\\d*)K->(\\d*)K\\(\\d*K\\), ([\\d.]*) secs\\]");
               Matcher m = p.matcher(strText);
               while(m.find()){
                    fout.println(m.group(1)+ "," + m.group(2) + "," + m.group(3));
               fout.close();
    }Hope this helps.
    Regards,
    Prabhu

  • Can a servlet handle other than HTTP request..?

    I was asked this question in a interview. Can anyone clear me this.
    Can a servlet handle other than HTTP request..?
    If yes, please give me a working example.

    Can anyone guide me to achieve this.?
    Note: If anyone worked with servlet responding ftp request, please send me the code.
    Yes, a servlet can handle requests in other protocols
    like FTP.
    To achieve this, your Servlet ought to inherit from
    javax.servlet.GenericServlet or implement the
    javax.servlet.Servlet interface. To code the Servlet,
    you should have a working knowledge of ftp protocol.
    When your servlet extends
    javax.servlet.http.HttpServlet, it can process http
    requests only.
    Cheers,
    ram.

  • Frequently, when I click on a link, try to return to the previous screen or close a tab, an option box comes up that requires a choice rather than simply doing whatever was originally requested. How can these option boxes be prevented?

    Frequently, when I click on a link, an option box will pop up asking whether to open in a new tab or new window and several other options, rather than simply opening in the same window or tab. When I try to return to the previous screen, it often will not let me, or provides options that I do not want. When I try to close a tab, an option box comes up that has several choices that I do not want and "close tab" at the bottom of the box. How to prevent these option boxes from popping up?

    Turn of JavaScript. These are "per site" and generated by the site. They are not the normal function of the browser. This usually occurs on attack sites. I'd stay away from them.
    The only "trusted" site I ever saw do something like this is Google, which asks me if I'm sure I want to close the tab that has their search results. I really pisses me off, but I have yet to find a way to stop it.
    It is certainly bad coding behavior on the part of whomever designed the site. When a user clicks an action, it should be presumed, unless the action is potentially very destructive, that they intended to perform that action. A UI should never incessantly second guess the intentions of a user.

Maybe you are looking for

  • Header and Footer in not displaying correctly on each page in Adobe Forms

    Hi experts,    I need your little help on Adobe Form.  I have develop a customer account statement and facing problem.      In header and footer part I have to display customer address. It is ok if data is of one page. But when data is overflowing, c

  • Auto Increment of Primary Field in Table Maintainance

    Hi, We want to give an Auto increment to the Primary Key, when ever the table is updated/inserted with a new record. How to get the value updated???? For Eg, Table ZTEST Contains     MANDT, ITEM,   EBELN. It should have the values 800    001   000977

  • AVI files in iMovie

    Hey, I am a new mac user and I am putting together this video in iMovie. I have downloaded some avi files and imported them into iMovie...however when I go to look at the clips, they say taht there is no duration, and its just a black screen. I have

  • HOW TO CONFIGURE GUEST NETWORK AND LIMITE BANDWIDTH

    Dear all, Please help me how to configure internet access rule and limited the bandwidth for guest network via TMG Forefront 2010. Thanks you & best regards, Hung Viet 

  • I have a video I would like to take a photo from.

    How can I take a photo off a video ?