HttpURLConnection : unable to use cookie to go to next page

Hi,
I'm trying to login a form by using java application. I'm successfully login in and http return 200 response code for me. i had set the cookie for the page.
Now, i try to access the another page of the web and it seems like unable to use the cookie to access the page and the http return 500 response code to me. The code is like below :-
URL login = new URL(loginPageURL+"?id=" + wbUser + "&passwd=" + wbPassword+ "&login=Login");
            HttpURLConnection loginConn = (HttpURLConnection)login.openConnection();
            loginConn.setFollowRedirects(false);
            loginConn.setInstanceFollowRedirects(false);
            loginCookie = loginConn.getHeaderField("Set-Cookie");
            if (loginCookie == null) {
                System.out.println("Web Page Login Fail --- COOKIE NOT FOUND");
                log.writeLog("Web Page Login Fail --- COOKIE NOT FOUND");
            } else {
                System.out.println("Web Page Login (login_cookie: " + loginCookie+")");
                log.writeLog("Web Page Login (login_cookie: " + loginCookie+")");
            System.out.println("response code : " + loginConn.getResponseCode());
            //use the login cookie to go to other page
            URL url = new URL(wbIndex);
            HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
            urlConn.setRequestMethod("POST");
            urlConn.setRequestProperty("Cookie", loginCookie);
            urlConn.setRequestProperty( "Content-Encoding", "big5" );
            urlConn.setRequestProperty( "Content-Type", "text/html" );
            urlConn.setDoInput(true);
            urlConn.setDoOutput(true);
            urlConn.setUseCaches(false);
            urlConn.setDefaultUseCaches(false);The http return this error code : -
java.io.IOException: Server returned HTTP response code: 500
Can anyone please help me on this??
Thanks a lot..........

Hello, wnnsiau
Thank you for visiting Apple Support Communities.
If your account is disabled, see the steps in the article below.
Apple ID: 'This Apple ID has been disabled for security reasons' alert appears
http://support.apple.com/kb/ts2446
If you have tried the steps above and this issue persists, see the article below.
Apple ID: Contacting Apple for help with Apple ID account security
http://support.apple.com/kb/HT5699
Cheers,
Jason H.

Similar Messages

  • Unable to process your request when clicking next page button in web app

    Hi,
    1) I'm using CR for VS v13 (13.0.2000.0)
    2) .Net 2.0 in IIS6 compiled with TFSBuild on TFS2008
    3) Issue ocurs when deployed on QA server
    4) Database is SQL server 2005
    5) Ado.Net passing data definition thru an xsd with a multiple tables dataset
    6) Reports using en embeded query are ok.  This happens only when we use data definition thru an xsd with a multiple tables dataset
    7) Don't know yet (I will have a hard time convincing my boss to stay with CR if I have to redo my reports anyway...)
    8) When using Fiddler, only "200" responses are returned.  Thats when producing the page and also when clicking on the next page button
    The detailed message also says: "The target '...' for the callback could not be found or did not implement ICallbackEventHandler. "
    Thanks
    - Stephane
    Edited by: jjslagace on Apr 1, 2011 12:25 AM

    Hi again Ludek,
    Sorry for this late reply.
    I followed you advice and installed the SP1 (CRforVS_13_0_1).  It did not solved the problem with the next page button but It did fixed some printing problem we also had.
    The page where the problem occured was loading the Crystal Reports Viewer dynamically after or durring the page load.
    After reading other posts loosely related to my problem, I changed my page to load the Crystal Reports Viewer statically in the .ascx.  It solved the problem and we can now navigate in the report normally like before the update.
    Thanks for you help.
    - Stephane

  • Using Javascript to go to next page

    I'm trying to figure out how to advance to the next page in a captivate 3 course using Javascript. We have navigation buttons for "Prev" and "Next", but I'd like to be able to call some JavaScript when they click the Next button on a particular page, and then at the same time, advance to the next page.
    This is being launched from an LMS. The initial JS is going to set the score to 100%, which works fine. We typically have a "Close Course" button on the last slide to make sure it passes back a 100%, but many students are not clicking that button and the course simply returns a "passed" with a 0%.
    So making this JS call as part of the "Next" button should result in more 100% scores when they get to the end of the course, but I need it also to advance to the next slide.
    Thanks for any assistance!
    John

    Hi there
    Methinks you are overthinking this. Here's why.
    Note that any Button or Click Box obeject will release the pause when it has been clicked by the user unless you specifically configure it not to. If you assign some JavaScript to the Button object and the user clicks it, it does two things.
    Carries out the assigned action
    Releases the pause so the movie continues playing
    So I'm thinking in this case it's a simple matter of timing.
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Unable to use the table selection in the Pages Inspector on blank wordprocessing page.  What am I doing wrong?

    I was trying to draw a tables with 11 rows and 3 rows as a starts to try to make address labels.  Downloading an Avery template didn't work.  I opened the Inspector on a word processing blank page but none of the selections worked.  "Body rows" and "body columns"  were inoperable.  Do I have a flaw in the Pages program that came with the iWorks?

    Hi 'plexed,
    Use the yellow Table button in the tools to insert a table. With any cell in the inserted table selected, the Table Inspector an all its controls become active.
    Regards,
    Barry

  • How to use cookies in jsp

    Hi all,
    I'm new to jsp, please let me know how to use cookies with jsp.
    I have three web applications, in run time I have to switch from one application to another application based on single login page. I have taught cookies are one of the solution. But while I'm googling I unable to get such a good material.
    please give some examples,
    Thanks in advance.
    achchayya

    Read a cookie in jsp
    HttpSession session = request.getSession();
    Cookie cookie_session = getCookie(request, "COOKIENAME");
              if (cookie_session == null) {
                   sesID = session.getId();
              } else {
                   sesID = cookie_session.getValue();
              }or
    get all cookie in the browser
    This gets all the cookies and according to the cookie name given u can get the cookie value
    Cookie[] cookies = request.getCookies();
              if (cookies != null) {
                   for (int i = 0; i < cookies.length; i++) {
                        if (cookies.getName().equals(cookieName))
                             return cookies[i];
                   }but i am not sure if this works for ur requirement try and see                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Unable to Use Google Maps

    I have recently upgraded to Mac OSX 10.8.4 and use the latest Safari browser (v6.0.5) all the time.  At some point, since I use iGoogle as my homepage, my maps changed to the Google Maps version now in place.  I am unable to use it, as it never changes from its grey, non-visual map mode to anything allowing me to see a distinct map or to find directions; it just doesn't work. Has anyone else had this problem?  If so, what did you do to correct the situation?
    I have used Google to search for and select maps.google.com, which brings up the identical screen I see when I choose the Maps tab in iGoogle.  It does not display any map even after an arbitrary search for a specific address.
    Message was edited by: Bronco 01

    Try emptying the Safari cache and deleting cookies ...
    Press Command + Option + E to empty the cache.
    Now open Safari > Preferences > Privacy
    Click Details. Remove all Google related items.
    Quit and relaunch Safari to test.
    If that doesn't help, try here >   Google Maps Help

  • Unable to use kuler: blank screen

    Hello,
    for several weeks know I'm unable to use Adobe Kuler: opening the URL https://kuler.adobe.com/, in Firefox I see only a black screen. Trying the same in Internet Explorer, I see a hint concerning system requirements. Please see the sreenshots. Cookies are inabled in both browsers. I don't know how to check if Java Script is inabled, but as I use other applications with Java I believe it is enabled.
    I'm using Windows 7 64bit.
    Thank you
    Karfried

    airplay mirror mirror the whole screen not just the movie you watch if you're not watching movies does it show your desktop?
    if you're watching movies but not from the superdrive does it show your desktop ?
    is your mac support by airplay mirror (if not then you will never be able to use airplay for anything but audio=
    http://support.apple.com/kb/ht5404

  • I'm unable to use Fiverr with Firefox. Last year I was able to order Fiverr gigs and send messages inside Fiverr but for the last 3 weeks I've been unable to.

    I'm unable to use Fiverr.com with Firefox. Last year I was able to order Fiverr gigs and send messages but for the last 3 weeks I've been unable to do either. I can login to Fiverr but I'm unable to use the service.
    I'm using Windows 7.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • I locked myself out of my ipod touch for 60 mins then actually typed the wrong password in again.  Now it is telling me to "connect to itunes".  I am unsure how to do this.  I am unable to use my ipod at all now. Please help.

    Hi,
    Due to my brother locking me out of my ipod touch I had to wait an hour to log in again.  Unfortunately when I did this, I, again put in the wrong password twice more, each time locking me out for a further 60 minutes.  On my 3rd attempt to log in the wrong password was entered again.  This time though instead of logging me out for another 60mins it now tells me to "connect to itunes" but I have no idea how to do this and I am now unable to use my ipod.  Please help.

    See Here  >  http://support.apple.com/kb/HT1212

  • Unable to use ASDM on 5510 and 5520 ASA

    Hello,
    I have been working with ASA's for about 8 months now.  I have a 5520 that is brand new out of the box and a 5510 that I blew up last week (read as format disk, start from scratch).
    I have generated RSA keys, loaded license keys, loaded IOS's and configs in the last few days.  Luckily these boxes are table top at the moment and nothingto do with production.  However, I have tried to load production configurations on to these boxes, and have determined that not all the lines of the configs will load.
    To be specific at the moment, I am unable to load "asdm location 192.168.50.0 255.255.255.0 inside" on either box.  I am also unable to use my broswer and HTTPS://192.168.50.1              to access the ASA, even though I have HTTP serve enabled and HTTP 192.168.50.0 listed in the config.
    Because I blew up one of the boxes and started from scratch and the other box is brand new, is/are there any other special things that need to be done to these boxes?  Like I could put in some of the "crypto" config lines in the boxes until I did the license keys, once they were lin, I could configure the crypto lines.
    I am open to any suggestions as this point as I can't current get the VPN's to come up (different issue here) nor see what's going on with the VPN's without ASDM.
    Thank you!
    Tracey

    Hi,
    please configure the ASDM-permitted subnets as following:
    http
    and make sure that you have overlapping ciphers between the client and the ASA:
    show run ssl
    ssl encryption
    if it persists, get the SSL captures at the ASA as .pcap
    hope this helps
    Mashal Alshboul

  • Unable to use iCloud on my iPhone 4S

    I'm unable to use iCloud on my iPhone 4S.  I click on Settings, Scroll to iCloud, Click on iCloud, and then it prompts me to enter my Apple ID and Password.  After I do I click on Sign in and it says User name or password is incorrect and I know they're not.  I try signing in with the same Apple ID and Password and I have no problem signing in.  I don't know what's going on.  Can someone please help?? 

    You need an Internet connection to use Facetime. As not all carriers support Facetime you may need a WiFi connection.

  • Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.

    OK, so I'm clearly a newb. I thought if I asked a question, it would post, and now I'm being told to post a comment, so I'm asking the same question again. Sorry I sound like an idiot. I'm new to this apple/mac stuff.
    Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.

    If you have added the ringtone file correctly to iTunes, it will appear under iTunes 'Tones' library.
    If you don't find Tones library in iTunes, go to iTunes menu EDIT/PRFERENCES under GENERAL tab, check the Tones Box under Library source to display Tones library in iTunes.
    iTunes accepts only m4r file as ringtone and has to be less than 40secs.

  • Unable to use 'copy' feature with registered version of quicktime pro.

    Hi.
    I have a registered version of Quicktime pro (7.1.6), and i am unable to use the copy feature. I captured several videos from work using a windows box and an application whose name escapes me at the moment. Due to the windows app being garbage, i was only able to capture in MPEG1 format (MPEG2 caused the app to crash, of course). I have brought the files home and am now unable to copy selections of it for exporting into smaller files. I can highlight lengths of the video (no audio, just video) but the 'copy' feature is grayed out still. Any ideas on what is causing this? The video format is as follows:
    MPEG1 Muxed, 640 x 480
    FPS: 29.97
    Data rate: 4066.42 kbits/sec
    I'm running 10.3.9, but have also had no success on a 10.4 macmini, so the OS doesn't seem to be the issue.
    I'm trying to get this video into imovie, but since it's over 600 megs, imovie cops out after a few hours and says it can't import it.
    Help?

    Not all multiplexed videos come with AC3. They don't have to have audio in the first place. Some of them come with Linear PCM, which is the case for iDVD's VOB files, and MP2. If a multiplexed video is equipped with AC3, you are right, and the resulting modified sub-clip won't contain audio. But if it's Linear PCM or MP2, the edited sub-clip will contain audio.
    I'm finished with this case.
    Message was edited by: Horror in Oklahoma

  • I am unable to use my bluetooth headset to record voice memos, is there a trick to this?

    I have a Plantronics Voyager Pro+ Bluetooth headset, I am unable to use it to record voice memos on my Iphone 4, using IOS 6.1.3.  The memos record fine when using the built-in mike but not the Bluetooth headset.  Does anyone have any insight or comments that might help resolve this situation?
    Thank you.

    Hello jaymecaroline,
    Thanks for using Apple Support Communities.
    The steps below will help you in resolving this issue of your iPhone giving you a No SIM alert.
    Update your iPhone to the latest version of iOS.
    Toggle Airplane mode On and Off.
    Try turning iPhone off and then on again.
    Check for a carrier settings update. Tap Settings > General > About. If an update is available, a prompt will appear.
    Remove the SIM Card and verify that it is a valid, carrier-manufactured SIM. Also verify that it is not damaged, worn, or modified. Then reinsert it.
    Restore the iPhone.
    If you still are unable to resolve this issue, contact Apple support for further assistance.
    iPhone: Troubleshooting No SIM
    http://support.apple.com/kb/TS4148
    Take care,
    Alex H.

  • How do I use cookies to control which part of the timeline to play from?

    Hi there,
    I have created an animation with Adobe Edge. My site uses Concrete5 and I am pulling in the Edge content into an IFRAME on my home page (there my be a better way to do this and I'm open to suggestions). I want the animation to play from the start when someone first visits the site, but if during their browser session they navigate back to the home page, I want the animation to only play a shorter segment of frames near the end.
    My question is, how do I use cookies to acheive this? I'm new to javascript/jquery.
    I've included the following code on compositionReady, (found in another post on this forum) but don't have a clue how to continue...
    // insert code to be run when the composition is fully loaded here yepnope(   {     nope:[       '/js/jquery.cookie.js'     ],   complete: init   } ); function init() { //create your cookie's initial values here } 
    My temp site is here - http://79.170.40.43/nutcrackerdesign.co.uk/
    On revisting the homepage, I only want to play from when the green 'How can we help?' button drops in.
    Many thanks!
    Russ

    Hi, Russ-
    I found this article, which seemed really helpful in describing how cookies work in JavaScript:
    http://www.quirksmode.org/js/cookies.html
    Remember that JS works just fine within Animate, so on your compositionReady, you can read your cookie and then set the play based on that.  You should probably uncheck the autoplay for your Stage and control the play of your Stage from the compositionReady.
    Good luck!
    -Elaine

Maybe you are looking for

  • Apex 4: How to send email when form is submitted?

    Hi, Using Apex 4.0.2 on DB 11g, I've a form with around 80 fields and 4 check boxes. When the user clicks on submit button, besides saving the values in the database I also have to send emails. Selection of the 4 check boxes decides whom the email ha

  • Not able to install onedrive for business, keeps telling its already installed but its not (W7)

    not able to install onedrive for business,  keeps telling its already installed but its not  (W7) after a change of the 365 office version OneDrive for business it is not possible to reinstall the software it keeps telling me it is already installed.

  • Datalist with scrollbar, can't get it to work

    Hi all there, I've tried this over and over, but i can't get this to work; I have selected an picture (thumbnail) AND selected a vertical scrollbar (with shift click) The scrollbar is from catalyst itslef, so not a custom made 1. I then (with again b

  • Payment on account print layout in SBO 2007A

    I want to display the account code and GL account on incoming & outgoing payment for Vendor AND on account in the PLD, when selected, but RCT4 does not pull through to PLD. Is their another solution to display Vendor Code and/or GL code, depending on

  • My Swing component's style is changed!

    Hi all. I am using Linux openSuse and from a week I see that my swing component's style is changed! JButton, JPanel, JMenu, JCheckBox and other have a different style and I don't know why... this is an example: http://img527.imageshack.us/img527/715/