Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7870705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:41:46+00:00 2026-06-03T01:41:46+00:00

I am using simulator BB 8900. I am trying to connect to url and

  • 0

I am using simulator BB 8900. I am trying to connect to url and get response code 302.What does it mean?
Here is my code snippet:

import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
.....
connection = (HttpConnection)Connector.open(url);
responseCode = connection.getResponseCode();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:41:47+00:00Added an answer on June 3, 2026 at 1:41 am

    An HTTP 302 is a ‘temporary redirect’. You need to handle it.

    As per the standard, if you get a 302 response, the response will contain a ‘Location’ header field with the redirect:

    Client request:
    GET /index.html HTTP/1.1
    Host: www.example.com
    
    Server response:
    HTTP/1.1 302 Found
    Location: http://www.redirected-address.example.com/
    

    You need to extract the new URL from the response. (Use getHeaderField("Location") to do this). Then execute the same method on the new URL you got.

    Two other points:

    1. Since this is a ‘temporary’ redirect, you cannot store this new URL. You should keep using the old one, and if it returns a 302, then use whatever URL is in ‘Location’.

    2. If you are not executing a GET or HEAD, you shouldn’t do the redirect automatically. Instead ask for user intervention. The RFC requires this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying some code to open the iPod Library using the simulator but
I'm doing the following: [self.parentViewController dismissModalViewControllerAnimated:YES] This code fails using the Simulator but works
I am trying to run an Android application on a BlackBerry PlayBook Simulator using
Can you send messages through iMessage using iOS Simulator? I would like to get
I'm building an iPhone application using the Simulator on Debug configuration. I get this
when i do a simple request using twitter api on ipad simulator, why does
I want to take retina iPad screenshots using the simulator, but because it's bigger
When, I run my application in the simulator using the Leaks instrument, it uses
I'm using MARS MIPS simulator and using the Digital Lab Sim. The purpose of
I have recently been using WxPython to create a GUI Network simulator like Cisco

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.