HTTP request works does not in a Simulator

Hi all

am held to an odd question in the BB. My http request class always throws incorrect exception as the url. spin the MDS Server too. to send the request, I talked link http://riccomini.name/Topics/Mobile/BlackBerry/BlackBerryHTTPClient/...

try url www.google.com... every time am getting error 400... I don't think that the url is incorrect.

So please help me to solve the problem. Is there a problem with MDS? using jde 4.5 and 8300 simulator-based test.

I tried the sample provided by the SDK... also for this same problem am facing

Thanku

Sorry not an area of expertise, but I guess you have a proxy on your network server and you must configure the MDS to work with it.  Search for proxy server, there is an article that explains how.

Tags: BlackBerry Developers

Similar Questions

  • HTTP POST works does not as expected

    I can't understand why the POST with data works when I use Firefox, but not when sent from the BlackBerry. The only difference seems to be that the BlackBerry less sends the headers, but it's all legal HTTP.

    It's TCP data are sent to the server (from recorder package):

    ----------------------------------

    HTTP/1.1 POST/page
    Host: localhost
    Connection: close
    Content-Length: 8

    test = abc

    ----------------------------------

    That sounds about right. However, the Web Server table $_POST (PHP) is empty.

    Code follows:

         HttpConnection c = (HttpConnection)Connector.open(connectionString);
            c.setRequestMethod(HttpConnection.POST);
    
            DataOutputStream out = c.openDataOutputStream();
            URLEncodedPostData postData = new URLEncodedPostData(URLEncodedPostData.DEFAULT_CHARSET, true);
            postData.append("test", "abc");
    
            System.out.println("requestData: " + new String(postData.getBytes()));
            out.write(postData.getBytes());
            //out.flush();
    
            c.getResponseCode();
    
            InputStream is = c.openDataInputStream();
            LineReader lr = new LineReader(is);
    
            while(true)
            {
                try
                {
                    byte[] arr = lr.readLine();
                    System.out.println("Line: " + new String(arr));
                }
                catch(EOFException e) { break; }
            }
    

    Everyone knows about similar problems using POST?

    See you soon,.

    Pav

    Update:

    -J' tried this on 2 servers Web (Apache + PHP) unrelated, both have the same problem.

    SOLVED!

    I tried to put different headers that Firefox sends inside the request of BB and it does the job:

    c.setRequestProperty ("Content-Type", "application/x-www-formulaires-urlencoded");

    Hope it saves someone out there a lot of frustration :-)

  • BBM works does not in a Simulator

    Hi all, I am fairly new to the Blackberry 10 development, I started the Simulator and tested if BBM works, I followed all the steps requred to make it work but I get "temporary server error, please try again later", I looked through all of the threads that I could find about this problem but nothing works, whenever I try to open BBM , although there seems to be some activity on cmd server, can someone please help

    This line:

    <2014-03-06 11:14:29.567 CAT>:[107]:::
    

    Usually occurs when the policy files Extension JCE (Java Cryptography) unlimited strength jurisdiction have not been installed for the used JVM.

    Download the Oracle Java web site here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
    Unzip the policy files and follow the installation instructions in the README.txt file to install jar of two policy files.

  • SE connect Blackberry 10 Simulator and BBM works does not in the Simulator

    Hi all

    I use QNX momentics IDE for development and blackberry 10 Simulator.

    I use the simulator using VMWare workstation. A problem that occurs is that my Simulator is impossible to connect to BBM. Although the Internet is there on Simulator (checked with the browser on Simulator). As far as newspapers are concerned in the case of the blackberry simulators 9900 and 9930 counted out newspapers and event logs.

    But in this Blackberry 10 Simulator, I could not find newspapers where they are generated.

    Please tell me the location where in 10 blackberry Simulator logs are generated.

    Thank you best regards &,.

    Tushar

    for newspapers, check out this link

    http://supportforums.BlackBerry.com/T5/native-development-knowledge/debug-on-the-device-with-console...

    Please mark as solution if it helps

  • Adobe flash player not working does not or does not appear as an application under Tools, options

    Adobe flash player not working does not or does not appear as an application under Tools, options

    If you can't Flash 11.3 to work and need to return to 11.2 Flash you can download Player Flash 11.2 through this direct link:

  • my microsoft work does not work error message that I need to reinstall, but I don't have a disck because it was already installed when I bought at walmart

    I bought my dell computer 2009 Wal-Mart, that he has is already set up with windows vista basic... and now my microsoft works does not work it says I have to reinstall.  However, he is not come with a disc. so, how can I do without having to buy a disc

    Go here: https://smartsource.dell.com

    This is where you go to download programs that have been installed on your computer that you do not have a CD for.

  • with firefox 43 yahoo and yahoo mail doesn't work does not correctly

    With the help of win 7 and firefox 43.0.1, I have 4 computers and now all have problems with yahoo and yahoo mail doesn't work does not correctly. Loading sites, but most of the features are missing and clicking on what whether changes to the lists of text. I have disabled flash / anti-spam etc., cleared cookies and cache and even firefox loaded down once again and have upgraded, no help. I'm forced to use IE now.

    I tried Yahoo support, they said try Firefox... In any case, it's Firefox and I found a solution using the 'Refresh Firefox' button. Whatever the problem was fixed on two of my computers so far. Got to update my setting again but it's 10 m, compared to the 10 hours I spent trying all that is nothing.

    Thanks for the help!

  • WIFI doesn't work does not correctly after driver update

    I have a DESIRE 4 laptop 1023tu with operating system Windows 8 PRO. My WIFI works does not properly after the update drievr.

    Problems...

    1. When you try to connect to a wifi hotspot the quick adapter turns off and allows the card instantly

    2. after connected, sometimes no internet access and the problem turns off only after reconnecting to the netwrok after setting off.

    If the update doesn't work not for you then do as I explained in my previous post and roll back to the previous driver. This philosophy can be applied to all updates.

    If there is no pressure or emerging reason to update to your PC or laptop works just great... do not update. (this is especially true when it comes to an update of the BIOS)

    For your question #2, the problem could be your wireless (modem, router or access point) which causes the connection dropped.

    Best regards
    ERICO

  • Family safety has blocked me and said the requested page does not exist, moved or is temp down.

    Original title: parental control

    Family safety has blocked me and said the requested page does not exist, moved or is temp down. Help me!!

    Hello April,

    Thank you for the information. For us to better visualize your main concern, please provide a screenshot of the message/code that you receive when you click on the family within your computer settings. To take a screenshot, you can follow the steps in the link/s below:

    I got a private message where you can securely download the screenshots. After downloading, please respond to this public thread for us to be warned.

    Visit us for your answer.

    Thank you.

  • AutoComplete doesn't work does not after installing IE *.

    AutoComplete URL function works does not after installing IE8.  Looking at the Advanced tab properties IE I see an option to use AutoComplete (which is
    ticked off) but it is said to "..". turn of Internet Explorer".  Whatever that means, and how I seized not semi-automatic work again under IE8?  I can go back
    for IE7, if it's the only way.   I tried to hit "reset" on the Advanced tab I saw a thread on try this - but no go...  Thank you

    sjakulski,
    Thank you for visiting the Microsoft Answers community forum.

    In Internet Explorer 8, the Auto complete option is in a new tab.  Go to tools, Internet Options and then click the content tab.  You will see a section that says "Auto-Complete".  Click on the 'Settings' button and it gives you several choices of auto complete options.

    This should solve your problem.  Let us know if you need more information.
    Thank you, Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    To run all the applications of the laptop or install download applications works does not error message indicating that the application is not valid "win32.exe or win32.application.

    Hello m.velentino,

    Not sure if you are still having the error message isn't valid win32.applicaiton.

    Get the error: not a valid 32-bit application can have several origins:
    I have listed some of them below.

    The file is corrupted, bad or missing.
    -If the hard disk is damaged or hurt it cause work programs to fail, either because not all data can be read from the hard drive the program is damaged on the drive. Run scandisk and defrag on the hard disk to check for potential errors.
    -If you run the program from a shortcut on the computer, verify that the program is still on the computer. In some cases if the program is no longer installed on the computer, you can get this error.

    File is not designed for your version of Windows:
    -If you try to run a program that is not designed for your version of Windows, you can get this error.
    -Although many old programs designed to work in older versions of Windows will work with new versions of Windows, unfortunately, not all programs will not work.
    -If the program is an MS-DOS program more former start program or Windows, you can get this error.
    -If the program is designed for a 64-bit version of Windows and you are running in a 32-bit version of Windows, it will not work and generate this error.

    File is a virus, worm or other malicious program file.
    -
    This error can be generated by a file that is a virus, worm, Trojan horse or other type of malware file. Often, this will result because the antivirus installed on the computer will not allow the file to install or run. Try to analyze the file to check, it is not a virus or infected.
    -If the file has been checked and is clean, it is always possible that the virus protection program or a another program installed on the computer is at the origin of questions during installation or execution of the program. Start the computer in Mode safe and try to run the program. start the computer in Mode safe will be that nothing is running in the background that could cause this problem.

    Hardware incompatibility.

    -If you get this error during the installation of a program, it is also possible that the CD-ROM drive or the drive that you are installing the program from is not compatible with Windows or has drivers that are not compatible with Windows.
    -Download the latest drivers for your CD player or other of the manufacturer of the computer or the manufacturer of the equipment. (Microsoft does not pilot for other materials)

    Let us know if these suggestions help you.

    Marilyn

  • Active state with menu manual not working does not with child pages

    I created a horizontal menu manual on my master page with two links (at WORK and about me). I did them manually as it was the only way I could work out how the style and the menu items to distance as I wanted. I created an active state that works for the main page WORK and the about me page.

    However, I have four child pages under the work, but when you click on one of them that the active State for labor (a green line under work) does not appear. When I return to the menu options to try to "solve" the problem and choose "All pages" all child pages appear in the main menu I want and does not solve the problem. I chose manual that I could put the line to show that under the term of WORK and not all field.

    Here is my Web site to demonstrate the problem: www.robertgreens.com

    Any help to fix this would be appreciated with gratitude!

    I managed to solve this problem (with the help of Live Chat Support). I needed to create an autour work and provide a 'normal' State which resembled the active state, so when you click on the pages of the child, it looked like work page parent menu (with a green line) below. This meant that I had to duplicate master page and do the same (deletion of the green line in the menu of work) for the words Me page. And now, everything looks the same: www.robertgreens.com

  • I had endless problems with Lightroom since the purchase of subscription for one year in December 2014. Now, the development Module was disabled, as they claim that my subscription has expired...  He spent more time to work does not, and I'm bitterly briv

    I had endless problems with Lightroom since the purchase of subscription for one year in December 2014. Now, the development Module was disabled, as they claim that my subscription has expired...  He spent more time to work does not, and I bitterly regret it.  Help, please!

    Open the Adobe Creative Cloud application then go to preferences then sign out and then sign back with the same Adobe ID that you used to purchase the subscription photographers, that is to say the same e-mail address and password.

    Then open Lightroom and go to the Help menu and make sure that it is signed in with that Adobe ID email address.

  • Integrated media works does not on any web browser on the network.

    To my office all of a sudden a large number of internet things stop working on our network. It doesn't matter what browser we use. Some things that don't work are that Pandora Radio, Grooveshark, Iheart radio, integrated pictures and YouTube videos on different sites and calendars on vrbo.com.

    We can watch videos on YouTube and listen to music on jango.com so its not all media that do not work.

    Since it is broad, I guess it has something to do with our server or network firewall. My office has a small business with Windows Server 2003 server. After that I installed windows updates, a few weeks ago is when I noticed these websites does not.

    We also have a WatchGuard Firebox EdgeX20e but I did not any changes recently.

    Ideas, any help would be appreciated.

    Nate

    Hey Nate,

    You have a computer on a network in Windows Server 2003 domain, I suggest you to post the same query on Microsoft TechNet forum because we have experts working on these issues. See the link to the request message:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    Please let us know if you have any other questions about Windows. We will be happy to help you.

  • JMS adapter Request-Reply does not

    I created a request-response in the JMS adapter, but its does not work... can someone suggest me the script step by step...

    Blog of Biemond has a good...
    http://Biemond.blogspot.com.au/2009/10/JMS-request-reply-interaction-pattern.html

Maybe you are looking for