HttpsURLConnection posts OK but empty response (not in browser though)

Hi All,
A very odd problem is happening with our system. We use a HttpsURLConnection to connect SSL to a https://www.securehost.com URL.
Calling this URL in a web browser or posting a form to it returns some text e.g "The Response".
We post to this URL over the HttpsURLConnection and get a response 200 back. We can also verify that the remote host received our post by contacting them.
The issue is that unlike in a browser, we get an empty response....here is some logging...
cipher suite in use on this connection : SSL_RSA_WITH_RC4_128_MD5
[2003-02-26 09:26:45,538] DEBUG BookingClient root - doPost: connection.getInputStream()
[2003-02-26 09:26:45,538] DEBUG BookingClient root - doPost: InputStream has 0 bytes available
[2003-02-26 09:26:45,542] DEBUG BookingClient root - doPost: response= length=0
Many thanks

[2003-02-26 09:26:45,538] DEBUG BookingClient root - doPost: InputStream has 0 bytes available"available"? If you're trying to use InputStream.available(), you're done.
First, available() always returns 0 for SSL connections. If you're relying in it to tell you how much you need to read to get the complete server response, your app is broken.
Second, available() is not a reliable way to decide how much data the server is sending. All available() tells you is how much data is currently in the network buffer - it may or may not be all (or any) of the data on its way from the server.
If you're not relying on available(), of course, then there's some other problem. Can you post the code that's reading the stream for us?
Grant

Similar Messages

  • Last Pass is on computer but it does not showin browser or work

    Had to download 3.6.2 because 5 was was interfering with AVG. Last pass worked when I had 5 but now does not. Does not even show in tool bar.

    Type  about:plugins  into Firefox address bar.  Does it show Shockwave Flash as an enabled plugin?
    What files do you have in
    C:\Windows\system32\Macromed\Flash ?
    C:\Windows\syswow64\Macromed\Flash ?

  • HT4759 My iPad was lost. I am using the Find my iPhone app, but it is not showing there (though the iPhones, even one that is not iCloud enabled, is). What can I do?

    My iPad was lost today. I am using the Find My iPhone app, but it is not showing on the device list or the map (though my iPhones, even one that is not iCloud enabled, is). What can I do?

    The only thing you might do is enable Lost Mode, which will allow you to set a passcode on it (as well as a message and phone number where you can be reached) so it will be locked when and if it does go online.  You can also receive an email informing you if it goes online so you can track it on icloud.com.  See http://help.apple.com/icloud/#mmfc0f0165.
    In the meantime, you may want to change your passwords.

  • MB1C transaction - material doc posted sucessful but MSEG table not updated

    Hi Experts,
    Standard transaction MB1C to post material documents... posted the document successfully and i get the message "Document 4900001978 posted" but when I go and check the table MSEG.. the entry is not found.
    Any ideas why is that not updated in table MSEG?
    In the program SAPMM07, which module updates the table MSEG?
    All ideas are welcome and highly appreciated.

    Hi Balu,
    I checked in tx. ST22 and there was no such thing happened. In MB1C tx, i got the info "document 49000.. posted". How can I find where they are updating the table MSEG.
    Thanks for your efforts.

  • I have no idea where to post this, but I can not delete TextEdit files.

    Tried dragging to trash, doesn't work. Tried highlighting the file and hitting delete, doesn't work.

    Try get info - command + I - and see if you have the permission to read & write textedit files. If you have read only, then you can't delete. You'll need to fix that.
    Oh, and for anyone reading this thread, providing information when you're asking for free help is not only important but considerate. This forum is users helping users.

  • Empty response HWC

    Hi,
    We are working on HWC application with rest webservices MBO approach. Getting empty response in hdc.processDataMessage
    hwc.processDataMessage = function (incomingDataMessageValue) {
      alert(JSON.stringify(incomingDataMessageValue)+"in process data");
        if (incomingDataMessageValue.indexOf("<M>") != 0) {
            alert("An error occurred!  " + incomingDataMessageValue);
        var workflowMessage = new WorkflowMessage(incomingDataMessageValue);
        var values = workflowMessage.getValues();
        alert("values--------"+JSON.stringify(values));
    Below are some queries:
    1. for HWC approach, while generating deploy package, do we need to specify MBO package details?
    2. When we specify, supAdmin/s3pAdmin while creating package, we are getting login error in response for user supAdmin.
    3. If username and password are not specified while creating the package, then it is hitting the service, but empty response is shown?
    Appreciate, if someone guide in debug approach for the same
    Regards,
    Gaurav

    Hi Midhun,
    Thanks for quick reply.
    Are you getting data when you do a preview of MBO ?
    [[]]: Yes. In Preview data is shown properly.
    For HWC application, we followed steps at below scn blog:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2013/07/18/hwc-application-development-using-hybrid-api-generation-approach
    We are trying creating MBO on sample DB table as well as MBO on rest webservice. In both cases, we are getting empty response.
    I tried adding code specified by you, but mvc is coming as null.
    1. for HWC approach, while generating deploy package, do we need to specify MBO package details?
    To deploy the MBO package right click on the project and select "Deploy Project" and to generate hybrid app from the screen designer right click and choose "Generate Hybrid App".
    [[]]: Do we need to do this step for HWC app?
    Also, while generating deploy package from packaging tool, do we need to specify MBO package?
    Regards,
    Gaurav

  • IHC payment order finally posted but payment request not created

    Hello
    I created payment order in In house cash  IHC automatically from (intercompany) a vendor invoice using idoctype payext. I can see that the payment order in transaction IHC0 has been finally posted. But table PAYRQ is empty. In transaction BF11 application IHC_EP is unchecked; application IHC is CHECKED. Any clue how to get the payment request created?

    Hi
    There could be various possiblity that I would double-check.
    1. Is CM activated in your system? If so, it may be due to the fact that the planning level is not assigned to payment request -
    Financial supply chain Management > Cash and Liquidity Management  >Cash Management > Structuring > Groupings >  Define levels in payment requests
    2 Another possibility would be that External account number may not be identical
    Account management > Basic Setting: communication
    Set Up Creation of Payment Requests for Inbound IDoc in FI – Account details)
      External account numbers need to be IDENTICAL keys between IHC and FI within IHC company as a communication method.
    If none of the above is applicable, you may need to debug by reprocessing failed IDOC by BD64 by removing the account assignment in configuration  - Set Up Creation of Payment Requests for Inbound IDoc in FI > Posting Account
    Hope that this helps
    Cheers

  • I downloaded a free App called ThaiPad from Bangkok Post newspaper. I downloaded on my PC running Windows 7. The Bangkok Post recommended itunes for downloading. I completed download but it would not open. I am assuming that perhaps this App. was for iPod

    I downloaded a free App. called ThaiPad from Bangkok Post newswpapers. I downloaded on my PC running Windows 7. The Bangkok Post recommended itunes for downloading. I completed the download but it would not open. I assume that this App was for iPad or iPod etc as the Bangkok Post wants to sell content,  after the free content,  via itunes store I assume. Can someone tell me if I can open this in Windows 7 and if so how. Thanks.

    Any app that you download using iTunes is for use only on iPad, iPhone, or iPod Touch, and not on a PC. It's possible they have a separate app for PC, as some companies do, but the one you downloaded via iTunes definitely will not open in Windows 7.
    Message was edited by: ClayG

  • I've reset my PPAM before to get around Firmware lock, but I've upgraded to mountain lion and now need to do the same thing, but I can't reset the PRAM. I've heard of the chip that is on the post 2011 macs, but I must not have one? What to do?

    I've reset my PPAM before to get around Firmware lock, but I've upgraded to mountain lion and now need to do the same thing, but I can't reset the PRAM. I've heard of the chip that is on the post 2011 macs, but I must not have one? What to do? Also, I can not get start up chimes unless I have the factory startup disk in. Can the PRAM be reset with the factory startup disk in or must the mac boot from the hard drive? Need help.

    Help for forgotten passcode >   iOS: Forgotten passcode or device disabled after entering wrong passcode
    When you have access to your iPhone again, FaceTime is a pre installed app that cannot be removed.
    Try a search >  iOS: Understanding Spotlight Search

  • When the user press the button Calculate Tax (see attached doc) and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.

    When the user press the button Calculate Tax  and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
    All setup looks fine.
    Please let me know what can be done on this?
    Regards,
    Peu

    HarryAustralia wrote:
    I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
    The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
    That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
    You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
    Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again.

  • I have a new mac and was in launch pad and deleted imovie by accident because it was showing two copies. I have not emptied my trash, but imovie is not in the trash nor is it anywhere when I search the computer for it. What happened? Where is it?

    I just got a new macbook pro. I was in launchpad and there were two imovie icons so I clicked on one and deleted it.
    It seems as though imovie is missing from my computer completely now. I have not emptied the trash, but it is not in there.
    Where has my imovie gone and how do I get it back? I don't understand why it isn't in the trash or anywhere on my computer.
    Please help

    Hi wjosten,
    Yes, I have checked the app folder and there is no imovie in there, there is also nothing in the trash.
    I have also checked the HD for imovie and it seems as though it's just gone?
    Thanks for your help, if you have any other suggestions I would really appreciate them.

  • Posting FI Document via bapi_acc_dosument_post but it does not clears the open items.

    Hi,
    I am trying to post the FI document using bapi_acc_document_post.Posting is happening successfully but clearing is not happening.
    I do not want to try bdc processing.
    Please suggest any alternate for this.
    Thanks,
    Aashi.

    Please commit and wait after execution of the BAPI.
    Thanks
    Ankit

  • Hi i am have had a lot of trouble emptying my trash. when i go to put something in there it asks from my password and the item goes off the screen, but this does not clear any space on the hard drive.

    Hi i am have had a lot of trouble emptying my trash. when i go to put something in there it asks from my password and the item goes off the screen, but this does not clear any space on the hard drive.

    1. Triple-click the line below to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu. An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.

  • TS3423 Mac book pro stops responding after Maverick OS restart. Currently have a circle with a line through it after 20+ hours. Tried to shut it down and use the Time Machine to restore but no response. How can I restore with Time Machine if it will not s

    Mac book pro stops responding after Maverick OS restart. Currently have a circle with a line through it after 20+ hours. Tried to shut it down and use the Time Machine to restore but no response. How can I restore with Time Machine if it will not start?

    sonjadg,
    you can purchase a replacement pair of grey installation DVDs for your MacBook Pro from either Apple or iFixit. If Startup Manager is only showing an OS X Installer volume, then it sounds like the Mavericks installer had a problem midway through its installation process. To fix this, you’re going to need to erase your internal disk and reïnstall your original version of OS X from the grey Mac OS X Install DVD, use Software Update  to get it back to 10.6.8 (presuming that your MacBook Pro originally came with Snow Leopard), and then restore from Time Machine.

  • Have read posts re the iOS 6.1 mess up... but how do I fix this? It says 6.1.1 is there to correct this problem but it is not on iTunes to download. I cannot updte apps, download apps and have had to remove apps because they keep crashing! Very angry!

    have read posts re the iOS 6.1 mess up... but how do I fix this? It says 6.1.1 is there to correct this problem but it is not on iTunes to download. I cannot updte apps, download apps and have had to remove apps because they keep crashing! Very angry!

    I cannot update apps, download apps and have had to remove apps because they keep crashing!
    I have turned off, removed apps, tried to reinstall them. iTunes can't download them either, the updates for them won't work.
    Never had problems with iPhones until now and this has really annoyed me... Apps have cost me money have had to go because they won't function
    the error messages say that data cannot be downloaded at this time and it is ot because I do not have free space because I have removed items to make sure there is room!

Maybe you are looking for

  • See who can solve this problem

    Parameter name   || Typing     ||  Associated Type ACGL_ITEM         || Structure ||  ACGL_ITEM this give error ( Typing is only for Like,Type,Type Ref To ) therefore i change it to Type but it telling me that the ( TABLES parameters are obsolete!) g

  • Unable to transfer large video

    I have a five minute video on my iPad that is too large to mail, and causes an error message when I try to transfer it to my PC.  Has anyone encountered this problem.

  • Part of image shifts when inserting footer

    Okay, when I go to insert a footer into a document, a portion - not all - of that document shifts.  The document is an exported pdf from ArcMap which contains several thousand elements.  All elements appear to remain in their original position with a

  • No source of supply for item in allocation table

    I'm having trouble finding a valid source of supply automatically for an article in an allocation table item. In the item overview of the allocation table, I have entered two plants. The system can find a source of supply for plant A automatically, b

  • Cannot Re-Download Lightroom in CC

    Hi, I have recently purchased CC and downloaded Lightroom 5. It would not open properly (was getting error message) so I deleted Lightroom and am trying to reload it but my CC is stating it is "up to date" and when I click download it does nothing. I