Http persistent connection, several request-response same http connection??

-I have a problem: I need to make a sever side java application to comunicate over http/1.1 using persistent connections, in other words: A http client sends an httpRequest to my application, my application receives the request and then sends a response, the httpClient receives the response and sends a second http Request to the application, the application receives this second request over the same connection and sends a second response to the client. All these things would be made over the same connection without closing any socket.
I`m trying to made this for 3 weeks but when the server side application responses the first request, the connection closes.
Anybody can help please???
I don�t speak english very well, sorry!!!!

HTTP has a connection-keep alive feature. If you are using a standard api for HTTP communication and a standard HTTP server you will have this feature enabled already. But it is not good idea to depend on connection keep alive feature because HTTP is not designed to keep track of the state of session on its own.
Why do you want to have it that way?. Cant you implement same requirement using HTTP sessions/cookies

Similar Messages

  • HTTP Channel request-response

    Hi,
    I have configured HTTP channel for synchronous request response (syncresponse=true in additional headers). I have to send an outbound Invoice to TP via http, get the response back and process it as an email. I have the outbound and inbound agreements set and it works fine. The issue is that I am unable to create a correlation between the request and response (invoice request corresponds to which response). Is there any setting to achieve this?
    Thanks in advance.

    This looks to be known issue. Similar bug was reported for
    Bug 17304428 - hcfpmlr: sync 271 response does not set reference to outbound 270
    There could be one possible solution of using correlation xpaths defined into the document definition, however, this being a sync transfer, it might happen that the outbound msg's xpaths are not persisted into the DB and the response msg xpath for correlation wouldn't find this.
    Hence, for the correlation of sync request and response to work by default the bug should get fixed. Please indicate the same in the bug if fix is required.

  • Http status code: 500 when testing Request Response API

    Hi,
    I published a web service and used the test function in the dashboard for a trial. But it returned HTTP 500.
    The request url is:
    https://ussouthcentral.services.azureml.net/workspaces/a5a6b2af17e749a29ae820df3ea5bdf2/services/ecfa1355485e4ed6a9767be2842452fb/execute?api-version=2.0&details=true
    In particular, I tried removing the quantile binning, then it worked. But with quantile binning, I keep getting errors.
    Any suggestions?

    Hmm, not quite - if it is truly the training set, you do not need it in the web service right?
    In fact, an RRS endpoint will expect an input set, so do you need the Reader module? If you use the Web Service Input module, it will bypass the Reader with the provided input data for scoring time.
    You are using Quantize Data correct? This module outputs two things: the transformed data and the
    transformation function itself. You need to Right Click -> Save as Transform, and use THIS in your scoring experiment + Apply Transformation.
    If you do this, the transformation does not need to be recomputed. If you leave Quantize Data in your graph, then your function will indeed be recomputed.
    Regards,
    AK

  • Multiple HTTP requests through same connection

    Hi...
    I am writing an application which connect to its server through HTTP protocol and the server is basicaly a bunch of servlets hosted somewhere (Right not it in the tomcat running in my PC)
    I know that with Connection Keep-Alive header you can keep the connection alive and do multiple requests from the same server.
    Can some one point me to where can I find some sample code which shows how to send multiple requests through same URL conection or URL object. What i cant figure out is how to reset the URL connection or its streams a and make them send anotehr request message to the serverso server can respond.
    Or do I have to do this manualy (using sockets)

    You SHOULD be able to do a HttpUrlConnection method. However, I have hand-coded HTTP server and client apps and the keep-alive is rarely enabled in servers.
    This is due to better handling of millions of unique hosts requesting, unlike a network os, which is made the other way around.

  • HTTP persistent connection

    Hello,
    I know this subject has already been touched but I did not manage to find a practical solution.
    I would like to send more than one http request (and check the response) to the same URL without having to reopen a new HttpURLConnection each time. The following piece of code does not seem to give any error but the server does not seem to receive more than one request. Could you give me any help ??
    Thanks,
    Francesco.
    public void exec() {
    try {
    url = new java.net.URL(m_hostURL);
    connection = (java.net.HttpURLConnection)url.openConnection();
    connection.setRequestProperty("connection", "Keep-Alive");
    //set the output to true
    connection.setDoOutput(true);
    out = new java.io.OutputStreamWriter(connection.getOutputStream(), "ASCII");
    for (int i=1; i<= 10; i++) {
    //place request in output stream
    out.write("hello world!!");
    out.flush();
    //send request and receive response code
    System.out.println(" Code : " + connection.getResponseCode());
    out.close();
    connection.disconnect();
    } catch (Exception e) {
    System.err.println("ERROR: Failed to send to URL - " + m_hostURL);
    e.printStackTrace();

    I also have been surfing the web to find out how to implement
    an applet-to-servlet communication link over a persistent http connection.
    There is a working implementation available for download at
    http://www.ustobe.com/
    After clicking on the 'news' item in the menu, there are links
    available to download HttpKeepalive.java, with javadoc explaining
    how to use this class.
    Mike

  • Problems connecting to SSRS using IReportServerCredentials, the request failed with http status 401: unauthorized

    We have a hosted SSRS server and we access it's reports using the reportviewer in an ASP.net application.
    We are getting the error: The request failed with HTTP status 401: Unauthorized. When trying to run one of the reports. I have confirmed that the login details work when logging into the report manager page directly.
    I have implemented an instance of IReportServerCredentials in a separate class (below) and I call it from the page before it tries to access the report. I'm not sure if this is all I need but can't seem to find any other info.
    I have managed to gain access connecting to the external server from my PC and accessed the report, but when I promote the code to production and run it from there on my local PC I get the unauthorized message again: the request failed with http status
    401: unauthorized
    The class:
    [Serializable]
    public sealed class MyReportServerCredentials :
    IReportServerCredentials
    public WindowsIdentity ImpersonationUser
    get
    // Use the default Windows user. Credentials will be
    // provided by the NetworkCredentials property.
    return null;
    public ICredentials NetworkCredentials
    get
    // Read the user information from the Web.config file.
    // By reading the information on demand instead of
    // storing it, the credentials will not be stored in
    // session, reducing the vulnerable surface area to the
    // Web.config file, which can be secured with an ACL.
    // User name
    string userName =
    ConfigurationManager.AppSettings
    ["MyReportViewerUser"];
    if (string.IsNullOrEmpty(userName))
    throw new Exception(
    "Missing user name from web.config file");
    // Password
    string password =
    ConfigurationManager.AppSettings
    ["MyReportViewerPassword"];
    if (string.IsNullOrEmpty(password))
    throw new Exception(
    "Missing password from web.config file");
    // Domain
    string domain =
    ConfigurationManager.AppSettings
    ["MyReportViewerDomain"];
    return new NetworkCredential(userName, password);
    public bool GetFormsCredentials(out Cookie authCookie,
    out string userName, out string password,
    out string authority)
    authCookie = null;
    userName = null;
    password = null;
    authority = null;
    // Not using form credentials
    return false;
    The call to the class, just before the report is run:
    if (GetConnection.GetConnectionString().ToString().Contains("IP of external server removed"))
    invoiceviewer.ServerReport.ReportServerCredentials = new MyReportServerCredentials();
    We have tried so many things here, we don't even care whether the server authenticates or not but it appears to be as standard. Our hosting company has also drawn a blank and changed so many settings to no ava

    Hi Nasa1999,
    According to your description, you are getting the error: The request failed with HTTP status 401: Unauthorized when you access the report using the ReportViewer in an ASP.net application.
    Regarding the 401 error, it could cause by the Service Principal Name(SPN) for the account the Reporting Services is running under hasn’t been registered when the Reporting Services is configured to use Kerberos authentication. So in your scenario,
    please check if you are using Kerberos authentication. If that is a case, please make sure SPN is configured correctly. For more information, please refer to the similar thread:
    The request failed with HTTP status 401: Unauthorized. in SSRS.
    If issue persists, please check the Reporting Service error log (default location: %programfiles%\Microsoft SQL Server\<SQL Server Instance>\Reporting Services\LogFiles) around the time that the error message thrown out.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • HTTP request/response object not thread safe.

    According to the serlvet spec. Http Request/Response
    are not thread safe. Quoting from the Spec:
    " Implementations of the request and response objects are not guaranteed to be thread safe. This means that they should only be used within the scope of the request handling thread. References to the request and response objects must not be given to objects executing in other threads as the resulting behavior may be nondeterministic."
    This has prompt me to ask the following question.
    For Example I have a servlet which does the following
    request.setAttribute("myVar","Hello");
    The request and response is dispatched(using RequestDispatch.include(request,response)) to another
    servlet which retrieve this attribute i.e request.getAttribute("myVar");
    Is this safe?
    The Spec only said "The Container Provider must ensure that the dispatch of the request to a target
    servlet occurs in the same thread of the same VM as the original request." I take this meaning that the targeting servlet does not have to run in the same thread(only dispatch), otherwise it would be safe.

    To put it another way, you can only have onle thing working on a request at a time. For instance, the ServletContext is available to all servlets running on a server. If you tried to save a particular request to the ServletContext, it would potentially be available to many concurrently running servlets. They could all change whatever in it at the same time. Each servlet is in its own running thread. Hope that helps some.

  • Connection timeout when using iPlanet web-server uses Weblogic 6.1 proxy server to proxy requests to an HTTP server

    Hi all,
    My configuration is as follows: I have an iPlanet web-server that uses a WebLogic
    6.1 (sp1) server to proxy requests to another HTTP server. The HTTP request runs
    for 120 seconds. This causes Weblogic to timeout after a while. The error I get
    is as follows:
    <Aug 25, 2003 3:37:09 PM GMT+00:00> <Warning> <HttpClient> <Couldn't open connection
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:127)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:194)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
    at weblogic.net.http.HttpClient.New(HttpClient.java:149)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:109)
    at com.db.gmr.dcm.DebtIssueServlet.getVectorFromConnection(DebtIssueServle
    t.java:285)
    at com.db.gmr.dcm.IssuesUSThread.run(IssuesUSThread.java:29)
    >
    I get the same error when I added the following plug-in configuration parameters
    (in obj.conf):
    ConnectTimeoutSecs="170" ConnectRetrySecs="170".
    What do I need to do to extend this timeout? Any help you can provide will be
    greatly appreciated..
    Thanks
    Manish

    Hi all,
    My configuration is as follows: I have an iPlanet web-server that uses a WebLogic
    6.1 (sp1) server to proxy requests to another HTTP server. The HTTP request runs
    for 120 seconds. This causes Weblogic to timeout after a while. The error I get
    is as follows:
    <Aug 25, 2003 3:37:09 PM GMT+00:00> <Warning> <HttpClient> <Couldn't open connection
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:127)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:194)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
    at weblogic.net.http.HttpClient.New(HttpClient.java:149)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:109)
    at com.db.gmr.dcm.DebtIssueServlet.getVectorFromConnection(DebtIssueServle
    t.java:285)
    at com.db.gmr.dcm.IssuesUSThread.run(IssuesUSThread.java:29)
    >
    I get the same error when I added the following plug-in configuration parameters
    (in obj.conf):
    ConnectTimeoutSecs="170" ConnectRetrySecs="170".
    What do I need to do to extend this timeout? Any help you can provide will be
    greatly appreciated..
    Thanks
    Manish

  • Reading the binary data from a http request received via socket connection.

    1. I require to extract the binary data out of a http multipart request,
    2. I have a server socket opened up, which can receive connections over tcp( and therefore http.)
    3. I will require to read the stream, find out the "request boundary identifier", and then extract the different "request body parts".
    4. From there i need to read all of the binary content and put it in a file.
    5. I did some implementation to his effect. but i see that the file that i had uploaded initially if its not a text file, gets corrupted.
    can you please let me know why is that happening, and a probable solution approach.
    please find below the class (with a main method) I have been using to expose a server socket.
    package self.services;
    import java.io.BufferedReader;
    import java.io.ByteArrayOutputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.PrintWriter;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class FileServer {
         public static void main(String[] args) throws Exception {
              ServerSocket serverSocket = new ServerSocket(9999);
              String FOLDER_NAME = "uploaded_files";
              while(true) {     
                   try{
                        Socket socket = serverSocket.accept();
                        InputStream is = socket.getInputStream();
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
                        BufferedReader reader = new BufferedReader(new InputStreamReader(is));
                        String currentLine;
                        int cnt = 0;
                        boolean postRequest = false;
                        String dataBoundary = null;
                        String fileName = null;
                        String yourName = null;
                        while((currentLine = reader.readLine()) != null) {
                             if(currentLine.contains("POST")) {
                                  postRequest = true;
                                  System.out.println("POST REQ AS EXPECTED VERY NICE");
                                  continue;
                             if(!postRequest) {
                                  System.out.println("NO POST REQ THIS BREAKING FLOW");
                                  break;
                             } else {
                                  if(currentLine.contains("Content-Type: multipart/form-data; boundary=")) {
                                       System.out.println("found a boundary value header");
                                       dataBoundary = currentLine.substring((currentLine.indexOf("boundary=") + "boundary=".length()), (currentLine.length() -1));
                                       System.out.println("boundary value = ".concat(dataBoundary));
                                       continue;
                                  if(dataBoundary != null && currentLine.contains(dataBoundary)) {
                                       cnt++;
                                  if(cnt == 1) {
                                       //move 3 lines
                                       if(currentLine.contains("Content-Disposition: form-data; name=\"yourName\"")){
                                            reader.readLine();//skip a line
                                       System.out.println("Your name = ".concat(yourName = reader.readLine()));
                                       continue;
                                  } else if(cnt == 2) {
                                       if(currentLine.contains("Content-Disposition: form-data; name=\"sentFile\"; filename=\"")){
                                            fileName = currentLine.substring(currentLine.indexOf("filename=") + "filename=".length() + 1, currentLine.length() - 1);
                                            System.out.println("File Name = ".concat(fileName));
                                            reader.readLine();//skip a line , this would depict a content type header
                                            reader.readLine();//skip a line, this would indicate a blank line to mark the start of data.
                                            continue;
                                       } else {
                                            // write the content to os
                                            if(currentLine != null && !currentLine.contains(dataBoundary)) {
                                                 baos.write(currentLine.concat("\r").getBytes());
                                  } else if( cnt == 3) {
                                       System.out.println(("cnt [" + cnt).concat( "], current line [").concat(currentLine).concat("]"));
                                       break;
                        if(fileName == null ||yourName == null) {
                             System.out.println("FileServer.main() dont bother about this" );
                        } else {
                             //send a response back
                             PrintWriter pw = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));
                             pw.write(responseMessage(yourName, fileName));
                             pw.flush();
                             //close output stream
                             pw.close();
                             //handle the request bytearray.
                             FileOutputStream fos = new FileOutputStream(FOLDER_NAME + "/" + fileName);
                             fos.write(baos.toByteArray(), 0, baos.toByteArray().length - 1);
                             fos.close();
                        //close input stream
                        reader.close();
                        socket.close();
                        baos.close();
                   } catch(Exception ex) {
                        ex.printStackTrace();
         public static String responseMessage(String yourName, String fileName) {
              String response =
                   "<HTML>" .concat(
                   "<BODY>") .concat(
                   "<P>" ).concat(
                   "Mr. <FONT color=\"red\">") .concat( yourName).concat("</FONT>. Your file named <B>").concat( fileName).concat( "</B> successfully reached us." ).concat(
                   "</P>") .concat(
                   "</BODY>").concat(
                   "</HTML>");
              return response;
    }{code}
    Here is a sample html file which can be used to send multipart requests to the java service.
    <html>
         <body>
              <form action="http://localhost:9999" enctype="multipart/form-data" method="POST">
                   Enter name :<br/>
                   <input type="text" name="yourName"/>
                   Enter file :<br/>
                   <input type="file" name="sentFile"/>
                   <br/>
                   <input type="submit" value="Submit"/>
              </form>
         </body>
    </html>
    *Both the form elements are mandatory*
    *I hope my requirement is clear. Any help regarding this will be highly appreciated.*
    Regards.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    MishraC wrote:
    1. I require to extract the binary data out of a http multipart request,
    2. I have a server socket opened up, which can receive connections over tcp( and therefore http.)
    3. I will require to read the stream, find out the "request boundary identifier", and then extract the different "request body parts".
    4. From there i need to read all of the binary content and put it in a file.
    5. I did some implementation to his effect. but
    i see that the file that i had uploaded initially if its not a text file, gets corrupted.
    can you please let me know why is that happening,Because you are using a Reader (which translates bytes to chars according to the charset encoding specified).
    and a probable solution approach. Use a BufferedInputStream.

  • Http request response

    Hi
    Im having trouble with a request /response.
    What I'm trying to do is send a string to a http request such
    as
    http://webdeploy/r/mixes/mixreq.aspx?username="+username+"&mixname="+mixname,
    "_parent"
    The response of this returns a string value.
    Ive tried using getURL but all that does is open a new html
    page with the response string printed on it.
    I couldnt get this to work with urlRequest either.
    Basically all I want to do is capture the returned string
    thanks,
    dub

    Thanks for the reply Raymond.
    I've been using the URIRequest class. It wasnt working for me
    and then I ran the application in debug mode.
    I got the following error
    *** Security Sandbox Violation ***
    Connection to
    http://webdeploy/r/mixes/mixreq.aspx?username=bernard1&mixname=My
    XYZ Mix_parent halted - not permitted from
    file:///C|/Documents%20and%20Settings/ba%Fetch.swf
    -- Untrusted local SWFs may not contact the Internet.
    Unable to load requested document.
    Do you know what this whole sandbox business is about and how
    to get around it?

  • Simulate multiple request / response with a HTTP URL

    I need to communicate with a servlet. In the first request, the user gets authenticated and a connection is created. Now I need to use this connection to send further requests since all requests undergo an authentication check.
    However, when I try to implement the same, the second time I write to the output stream of the connection, I get the following exception:
    java.net.ProtocolException: Cannot write output after reading input.
    Please help! I need to create an application which communicates with this Servlet in the specified way

    Now I need to use this connection to send
    further requests since all requests undergo an
    authentication check.That's not how HTTP works. For each request, you have
    to make a new connection. And as for authentication,
    it's perfectly feasible for you to do the
    authentication for every single request, but (at
    least in the case of basic authentication) browsers
    tend to send an Authorization header once they have
    done the original authentication dialogue. You could
    do that too.Also, underneath it all, HTTP 1.1 tries to maintain a socket connection so you don't have that overhead to deal with each time. But as DrClap says, you need to use fresh HTTP instances each time and set the appropriate session/authentication headers.

  • I click on a link inside an email and it won't open so I can print the coupon, response is http error 400 or I have it blocked. Others in my area aren't having any problems with the same link opening but they are using IE. What's up with Firefox?

    gohollywood.com, register, message came back from Hollywood Insider with a link to click on to "Download Coupon". Click on link and you should get the coupon and you print it out. All my friends have done it but I can't. I get various error messages including : "HTTP error 400 - the request is badly formed".... or you have a blocker set.....
    Unless it is a Gmail/Firefox blocker or firewall, I don't have anything set up as a blocker on my email. Had a few friends go in my account on their computers and they had the same thing happen. However when they go in under their names they get to the link with no problems. HELP.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Error Message: The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. The request failed with HTTP status 404: Not Found.

    I have a web page that contains a ReportViewer control.  I am trying to display a report, which is an .rdl file located on the SSRS server, in this ReportViewer control.  I have set the ReportPath and ReportServerUrl correctly.  I am
    getting an error message.
    Am I suppose to use an .rdlc file rather than a .rdl file?  Does the web server configuration need to use a certain account?
     I am getting the following error message:
    The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
    The request failed with HTTP status 404: Not Found.

    Hi bucaroov,
    The error "The request failed with HTTP status 404: Not Found." means the ReportServerURL configured in the ReportViewer control is invalid.
    Please follow these steps to solve the issue:
    Logon the Report Server machine.
    Open the Reporting Services Configuration Manager.
    Copy the Report Server URL from 'Web Services URL'.
    Logon the application server(in this case, it is the server that host the web page), check if we can use the URL we got from step 3 to access the Report Server. If so, please replace the ReportServerURL in the ReportViewer control with this URL. If it is
    not available, could you please post the error message.
    Additionaly, we don't need to provide the extension for a server report. The ReportPath should be like: /<reports folder>/<report name>
    For more information, please see:
    Walkthrough: Using the ReportViewer Control in Remote Mode:
    http://msdn.microsoft.com/en-us/library/ms251669(VS.80).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • TS3274 Every time I try to play Amazon video on iPad, it shows "our Internet connection is currently using an HTTP proxy, content playbacks not supported when a proxy is configured". Though I can play it on iPhone which has same Internet connection. Plz h

    Every time I try to play Amazon video on iPad, it shows "our Internet connection is currently using an HTTP proxy, content playbacks not supported when a proxy is configured". Though I can play it on iPhone which has same Internet connection.
    Can any one please help?

    This helped me
    http://mashtips.com/amazon-instant-video-http-proxy-error-on-ipad/

  • Possible to get runtime info (Http request, response) from a WD4A Appl.?

    Hey,
    In a BSP / JSP application, it is possible to retrieve and set the runtime data (http request and response). For Example:
    response.setContentType("application/x-suvaagent;charset=iso-8859-1");
    response.setHeader("Cache-Control", "public");
    response.getWriter().print("<Request>");
    response.getWriter().print("</Request>");
    Is it possible to do this in a WebDynpro (ABAP) Application?
    The requirement is to construct a file using http response method. This file contains parameters like business data etc. The file type is already registered as a MIME type which is associated with a standalone program.
    When sending the http response, the file will be filled out with needed data and the associated program will be called using the data in the file.
    I haven't found out how to do this in web dynpro application, since we use WD4A in our project.
    Thanks and Regards,
    Liang

    In Web Dynpro you do not have direct access to the Request or Response object. This is part of the design of the abstracted rendering and makes things like the SmartClient and the AJAX based Delta Rendering possible.
    In Web Dynpro you should use the FileDownload UI element or the CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a8d95673b12fe2e10000000a42189d/frameset.htm
    If you want more control over the response object for a download then I might suggest that you can create a cached response object, place it into the ICM cache and generate a unique URL for it.  You can then fire a navigation plug or a LinkToURL to go to that cached response object.

Maybe you are looking for

  • Placing Illustrator Files into InDesign-Apparel Industry Related?

    Hi, I am working on a larger document, approx. 60+ pages. I'm actually having 2 issues: The apparel sketches are done in Illustrator, and normally what I do is raterize the files and place them into InDesign. I've been encountering some difficulties

  • Get insert recoreds in OO alv

    Hello Experts , I am using an OO alv to update a Z - DB table which create myself , on the ALV the recoreds in Ztable could be added deleted or modified . I notice that on alv there is a button to insert a field , could you tell me how could I get th

  • Message Retry Count Zero error

    Hi, I am sending a Message from one Trading partner to another over ebMS protocol . The trading partners are using Weblogic JMS queues as the internal delivery channels. when one trading partner is sending message to another, the mesage comes to the

  • SHARING A LR4 CATALOG/PREVIEW VIA AN EXTERNAL DRIVE - A FAST ONE

    Does anyone have experience sharing a LR4 catalog via an external drive. My stuff all come in at different times so we would not be accessing it simulteaneously. Trying to keep the maintenance time down as I spend a lot of time working on my catalog

  • Q: How to properly shutdown part/all of VDI? and question about disk space

    Hi again. I was able to get the VDI to work, but yesterday I changed the ARC parameter both in the storage and the xvm server (not sure in which is needed to be changed) and restarted both machines, to my surprise, the templates and the cloned VM had