The incorrect header check

Hi all

I'm stuck in one of the problems.

     try
        {
        //  Dialog.alert(updateConnectionSuffix());
            connection = (HttpConnection)Connector.open(url+";deviceside=true");
            connection.setRequestMethod(method);
            connection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_LENGTH,String.valueOf(sRequestParameter));
            connection.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
            connection.getHeaderField(HttpProtocolConstants.HEADER_CONTENT_ENCODING);
            //connection.setRequestProperty("User-Agent","Profile/MIDP-2.0 Configuration/CLDC-1.0");
            //connection.setRequestProperty("Accept-Encoding","gzip, deflate");
            out = connection.openOutputStream();
            out.write(sRequestParameter.getBytes("UTF-8"));
            out.flush();
            out.close();

            int responseCode = connection.getResponseCode();

            if (responseCode == HttpConnection.HTTP_OK)
            {
                String encoding = connection.getEncoding();
                if (encoding != null && encoding.equalsIgnoreCase("gzip"))
                {
                    _in = new GZIPInputStream(connection.openInputStream());
                }
                else
                {
                    _in = connection.openInputStream();
                }
            }
            else {
            }

            //input = connection.openInputStream();
            GZIPInputStream gzis = new GZIPInputStream(_in);
            int chunkSize = 1500;
            byte[] data = new byte[chunkSize];
            String reply = "";
            int dataSizeRead = 0;//size of data read from input stream.
            try
            {
                while((dataSizeRead = gzis.read(data))!= -1)
                {
                    String newReply = new String(data, 0, dataSizeRead,"UTF-8");
                    reply += newReply;
                }    

            }
            catch(Exception e)
            {
                Dialog.alert("Error ::"+e.toString());
            }
            Dialog.alert(reply);
        }
        catch (Exception e)
        {
            System.out.println("Error"+e.toString());
        }

During playback of the income stream data I'm getting exception "check the Incorrect header."

Thank you

Stephanye Srivastava

Ok

For me, the next step is to put the data sent from the server to a byte array and compare the data that has been sent with what you expect.  Maybe you can create a small gzipped file and test it.

Here are the specs for the Gzip file:

http://www.gzip.org/zlib/RFC-gzip.html#file-format

You will notice that it starts with the hexadecimal characters x '1f' and x '8B', it might be useful to check the host t file check that it is in fact these hexadecimal characters at the beginning.

Tags: BlackBerry Developers

Similar Questions

  • Windows Server 2008, the server process could not be started because the configured identity is incorrect. Check the user name and password.

    When I started and connect to the windows 2008 Server and when trying to open any folder I get the below error message:

    The server process could not be started because the configured identity is incorrect. Check the user name and password.

    Please give me your entries for this problem.

    Kind regards

    Shankar Kale

    Hi Shankar,

    The question you posted would be better suited in the TechNet Forums. See the link.
    Hope this information helps.
  • Yahoo messinger does not start, he said: "the application failed to start because its side-by-side configuration is incorrect. Check the log of events applications for more details. » __

    Yahoo messinger does not start, he said: "the application failed to start because its side-by-side configuration is incorrect. Check the log of events applications for more details. »

    UM. I have no idea what that means, I never had that in my 20s I was using a computer.  Please help, someone!

    You can get the Chkdsk to run in the General Windows interface by following these instructions?

    Try running ChkDsk to check your drive for errors. Right click on your drive icon / properties / tools / error checking. Try first by checking do not each box (that it will run in read-only mode) to see if it reports any problems file or hard drive. If so, restart it by checking both boxes and restart to allow him to attempt to fix any problems found.

    Your command prompt Mode works without failure or a boot?

    Startup options (including safe mode)
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

    It works if you test with another user, you will need to create one to test with?

    System Restore and the System File Checker is able to fix anything?

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista (or 7)
    http://support.Microsoft.com/kb/936212/#appliesTo

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    How to analyze the entries in the log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista
    http://support.Microsoft.com/kb/928228#appliesTo

    Have you tested malware?  I see a lot of recommendations here for programs such as -

    Malwarebytes' Anti-Malware
    http://www.Malwarebytes.org/products/malwarebytes_free

    SuperAntispyware
    http://SUPERAntiSpyware.com/

  • Messenger: The application has failed to start because its side-by-side configuration is incorrect. Check the log of events applications for more details. How to fix?

    My Messenger was working normally, then I shut down my computer at lunch. In return, I turned it the Messenger wasn't working and this appeared:

    "The application failed to start because its side-by-side configuration is incorrect. Check the log of events applications for more details"

    Can someone help me to fix it? Thank you.

    Hello

    they will help you with your questions/problems Messenger when repost you the link below in the Messenger forums

    http://windowslivehelp.com/product.aspx?ProductID=2

  • How to check ink levels, clean the print heads in Windows 7

    We have a range of printers hp psc 1210 xi & win 7 32-bit. How can we check the ink level, clean the print heads, etc. ? I tried to print a test page, but there was no information about it on the ink levels.

    Here's how you can print a self-test that you provide ink levels and clean the print head:

    1. From the front panel, press and hold Cancel and then press Color Start.
  • Check box in the report header

    Hi all.
    I have a simple question, but couldn't find the answer myself.
    I need to create the check box in the report header and clicking on it to check all lines.
    Something like in this example ] of Denes Kubicek.
    And another question: How can I do this in interactive report?

    Thanks for your replies.

    Hello

    Go to the attributes of the report of the report and in the header field, add...

    
    

    Also, make sure THAT SQL the source in your area has a column of the box...

    select
    APEX_ITEM.CHECKBOX(1,COLUMN_HERE) "Check",
    .....
    

    I hope this helps.

    -Chris

  • iPhone displays the incorrect password

    Hello

    I'm new here. Recently, my iphone 5s shows incorrect password, everytime I try to connect to the wifi. Does anyone have the same problem and how to solve?

    I already reset settings of the network and even reset all the settings of the phone, but it does not work.

    Thank you.

    She asks for password of your router, if you forgot and it have not changed by default then it could be printed on the router - perhaps on the bottom. If you have changed the SSID by default and password of the router then you will need to reset the router (there usually a reset hole/button), make sure you have the default SSID and password at hand) or connect to the home page of the router and check the details.

  • How to check if the box is checked or not?

    Is any function available in CVI to check whether a checkbox control is selected / checked or not?

    starting from the help file:

    LabWindows/CVI automatically generates the necessary header file whenever you save a .uir file.

    So: generate an include file, include it in your source code and in your source code, use only one such constants as defined in the include file. If you continue to receive undeclared identifiers, check if your code source if you failed to change the id of a panel or a control.

    Good luck.

  • OfficeJet pro 8509: printer stuck in cleaning the print heads

    Printer stuck on the envelope and has been removed with the exception of the corner (2.5 × 2). Turned on the printer to see if it would come out a up... now by initial start-up, he is stuck in cleaning the print heads, but not leaning print head. Help... Thank you.

    Hi @rodman2,

    My apologies for the incorrect link. Here are the links for the jams paper and transport for the HP Officejet Pro 8500 A909g, it will display appropriarte steps to clear the jam.

    A Message appears 'Transport Jam' for HP Officejet Pro 8500 first (A909n) and 8500 wireless (A909g) all-in-One Series

    A message "Paper jam" for the all-in-one HP Officejet Pro 8500 first (A909n) and 8500 wireless (A909g)

    If you still experience the problem you after trying the steps in the link above, I recommend you contact HP for assistance.

    Contact HP:
    Step 1. Open the link: http://h22207.www2.hp.com/us-en/contact-hp/
    Step 2. Enter the product number or select Auto detection
    Step 3. Scroll up to "still need help? Fill out the form to select your contact options.
    Step 4. Scroll down and click on: contact HP options - click Get phone number
    File number and phone number appear

    If it helps, will testify of my answer by pressing the 'thumbs up' below, or click on the button "Accept as Solution" if I helped you reach a solution.

    I hope this helps. Have a great day.

  • I lost the Tools/heading bar on my Outlook Express email.

    I lost the Tools/heading bar on my outlook email.

    In addition, my spell checker is only the French that must be repaired in English.

    1: bar Tools/topic? You lose the toolbar with the buttons but still have the file, editing, etc? Right-click on an empty spot and check the toolbar.
     
     
    2: you have more correction spell checking capabilities in some languages in Outlook Express 6.0 after you install the Microsoft Office 2007 or Office 2010 system
    http://support.Microsoft.com/kb/932974
     
    Outlook Express cannot use the check spelling of MS Word in Office 2007 or newer. A free spell-checking the download is the easiest way to get around this.
     
    Vampirefo spell check.
     
     
     
    You wanted TinySpell or. (Check spelling while typing).
     
    Download it here:
    http://www.tinyspell.M6.NET/ 
     
    Australian English spell checking
    (Also suitable for other English speaking countries).
    http://www.justlocal.com.au/clients/oespellcheck/ 
     
    If you have an earlier version of Office, see this:
    http://www.Outlook-tips.NET/archives/2006/20061228.htm
     
     
     
  • Problems of updates Windows XP - how to fix the incorrect Windows XP updates KB2633952 keep asking to install?

    Problems of updates Windows XP - how to fix the incorrect Windows XP updates KB2633952 keep asking to install? True, it is that it is already installed on your computer. If hide us, an another previous KB2570791 arises in our updates of Windows and asked to install anything, that it was installed... of the questions repeated and very annoying.  Help, please!

    (Microsoft Answers just sent us message have deleted our previous thread, ask for help!) We are simply not that these problems are problems with Windows XP updates related to DST or not?)

    Nadia. PA supporter said that your computer is hacked. He may be right. I can't weigh because I don't know what led him to this conclusion. If your computer is hijacked, then you should address that more that you need to fix this minor update. However, under the resolution of your problem to update, you can try this:

    Assume Windows XP

    Check the C:\Windows\System32\ directory for the presence of the file tzchange.exe

    If the file is not present or if the version of the file is not 5.1.2600.6171 or newer...

    Download the update appropriate 2633952 for your platform here:

    http://support.Microsoft.com/kb/2633952

    Run with - extract switch (e.g., Start > run > "[path to the downloaded file] \WindowsXP-KB2633952-x86-ENU.exe"-x)

    Of course, replace [path to the downloaded file] with the path to the downloaded file.

    Citations may or may not be required depending on the path. Place the x - out the citations if you use them.

    Choose a location for the extracted files (a new folder is recommended)

    Locate the extracted files. File tzchange.exe you want and copy it into C:\windows\System32

    That rerun Windows Update detection to see if the problem is resolved.

  • "The file is maybe damaged. The file header checksum does not match the checksum calculated. »

    Hello

    I work with a HP Pavilion a6030n PC with Vista OS base. I had problems with the computer recently when starting. He continues to work at some point during the process and crash, forcing a hard stop. I'm not too computer savvy, but can generally work through questions. I tried several (and probably useless) methods to try to get the computer to work, with a modicum of success. Today, I received this message: "the file is maybe damaged. The file header checksum does not match the checksum calculated. "Hmmm... I looked through the forums and found a lot of computer-speak, who basically told me that I'm over my head. I thought that I would try at least ask the question before resorting to what is the hard drive a person to fix if all goes well.
    I can get it working again, or is my HP to his last breath?
    Thank you!

    If warnings getting You ' r files are corrupted, which could indicate a problem with the hard drive (most likely) or the memory/RAM in the computer (a little less likely but a good possibility).  Your computer came with a disk diagnostic or diagnostic software you can run to test the components inside?  You can also download this software and run it to see if he can help you narrow the possibilities.  Otherwise, I recommend to find a local repairman good and trustworthy and have them check for you if you are not adept at hardware troubleshooting.  It can get very frustrating and very expensive, very quickly.

  • try to install 4 GB of ram. Get the error «the file header checksum does not checksum» calculated

    Microsoft online tech help recommended I install 4 GB of RAM on my Dell Vista Home computer. The first stick fine boots.

    When I add the second stick the computer poster "the file may be damaged. The file header checksum does not match to the

    checksum calculated. "I see that it is a common error message online search, but nothing specifically addresses

    the issue of the Ram. Any help out there? Thank you.

    Hello

    You can contact the manufacturer of your computer for support and check if it helps.

    http://support.Dell.com/support/topics/global.aspx/support/DellCare/contact_technical_support?c=us&CS=19&l=en&s=DHS& ~ CK = anavml

  • Error: "the file is maybe damaged. the file header does not match the checksum calculated"during the installation of Windows 7/8

    * Original title: Question of re-Installation of operating system.

    I got the message during win 7 / Win 8 installation.

    "the file is maybe damaged. the file header does not match the checksum calculated.

    My config - processor Intel C2D, 2 GB of RAM, Intel motherboard, 500 GB HARD drive

    I have also replace Win 7 DVD and DVD player also replaced.

    I also reinstall my single RAM chip so many times. but the problem still exists.

    During Win XP SP 3 installation, no such message type not displayed. I can install it easily.

    Pls help me Sir, I would like to Win7 in my computer again.

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description of the problem, it seems that you are facing the question with the reinstallation of Windows 7 on your computer.

    Because the computer does not recognize the CD - R into the DVD player probably boot order is set to hard drive first. I suggest to change the DVD boot priority in the BIOS and then try to perform the Startup Repair.

    Note: BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    In order to make changes in the BIOS, I suggest you to contact the manufacturer of the computer.

    Method 1:

    Unplug all external devices connected to the computer with the exception of the keyboard and mouse and check if the problem persists.

    M odes 2:

    If the problem persists try the Startup Repair. It is one of the recovery tools in the System Recovery Options menu. This set of tools is on your computer's hard disk and on the Windows installation disc. To learn more about Startup Repair , you can refer to the below mentioned article:

    http://Windows.Microsoft.com/en-us/Windows7/Startup-Repair-frequently-asked-questions

    Method 3:

    In addition, if startup repair is not enough, you can perform a system restore, check if it helps you to solve the problem. For reference, you can see the article mentioned below.

    What are the system recovery options in Windows 7?

    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7

    Note: when you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Kind regards

  • BB10: How to get the response header

    Hi guys,.

    I would like to how to get the response header of a request using a typical QNetworkAccessManager. What I really need, it's to get the server date and I know that the response header there.

    I have seen that you can access some header in the response of the requestFinished() function object. But none of them is the Respone header.

    Does anyone have any idea on this?

    Thanks in advance.

    Hello

    If you have subscribed for over QNetworkManager (QNetworkReply * response) of the signal, use:

    Reply-> rawHeaderList() for a list of all the available headers.

    reply-> header (param) make themselves known headers, but they do not include Date.

    Reply-> rawHeader ("date") for the date or other custom headers.

    http://Qt-project.org/doc/Qt-4.8/qnetworkreply.html#rawHeader

    Returns the raw content of the header headerName such as sent by the remote server. If there is no header, returns an empty byte array, which may be distinguished by a header blank. HasRawHeader () allows to check if the server sent this header field.

Maybe you are looking for