How can I redirect a request for testing?

There is no internet access on the development machine and I have written for testing purposes a servlet to simulate a web server that my app accesses.
However I need a program or way of redirecting a (secure and non-secure) url request to the local host.
i.e. the application calls either:
http://www.thewebsite.com/foo?bar=1
or
https://secure.thewebsite.com/foo?bar=1
which is then redirected to:
http://localhost/thewebsite/foo?bar=1
How can this be done?

Hi, thanks for the replies. I thought about that
(it's a windows machine) but there is still a couple
of problems.
1. I can't specify the sub-directory can I?No, but your webserver can prob. do that.
2. I want to handle a secure request but have it also
go to the same locationssl would have to go to ssl. But setting up ssl normally is not too hard.

Similar Messages

  • I want to upload om data through lsmw. how can i create transport request for lsmw data.

    can anyone help me?

    Hi Anand,
    There are 2 ways for transporting LSMW data from a system to another.
    1) Export/import this method gives you the opportunity to select the subprojects or objects you want to transfer. Hence you don't transfer the object a colleague might have created and that should stay in development system. LSMW -> Extras -> Export project  
    2)Transport request with this method, you can transport a LSMW project in full (you cannot select the objects you want). With this method, the project will be transported as any other SAP object in a transport order. 
    LSMW -> Extras -> Create change request 
    For more information, refer below link Steps to copy LSMW from one client to another
    Thanks
    KH

  • How can I bypass the requests for my password?

    I'm on a Mac Pro 8 Core, running System 10.7.5. My dealer originally set it up (years ago) so that I simply had to hit the "return" key every time I was asked for a password and this worked fine. Then, when my Mac Mail went wrong and I went through Tech Support, they made me create a password for the Mail account.
    I'm now afraid that, if I do anything to the password situation, it will mess up my Mail account once mkore.
    Any advice?
    Many thanks,
    Harry

    Hi Kappy,
    Thank you very much for your reply.
    I have indeed written down my Apple ID and, thanks to you, now understand that this is a completely separate item to my computer password, which I guess is really knows as an admin account password as you point out.
    However, my question remains: how can I remove the need to enter my password when I start up my computer, or, alternatively, change it to (say) hitting the "return" key.
    When I first bought this computer, my dealer set it up so that the password was the key "return" and also I did not have to "log in" when the computer started up.
    Could you possibly find a moment to answer those questions? I'd be most grateful.
    Best,
    and thanks for your first response. Greatly appreciated.

  • How can I sign my .sis for testing purposes?

    Hi, I created a simple helloworld.sis application using the
    Adobe Mobile Packager. Now I want to install it to my Nokia S60
    phone, but I get the following error message: "certificaatfout"
    (it's dutch, meaning certificate error ;-).
    I tried Open Signed Online to sign my application
    url:
    https://www.symbiansigned.com/app/page/public/openSignedOnline.do
    but after submitting my application I get this error by
    email:
    Your application (HelloWorld_signed.sis) signing has failed.
    This may be because it has been flagged as a potential virus by our
    scanning or because the format of your sis file is incorrect or
    corrupt. Please try re-building your .sis file and
    re-submitting.
    Does anybody know how I can sign my application to test it on
    my Nokia phone?

    Hi Mark, thank you for the tip. In "Applications->App
    Manager>Options>Settings>" I enabled all applications and
    no online checks and now I can install my HelloWorld_signed.sis.
    Unfortunately, when I try to run my application, my phone
    asks:
    "HelloWorld needs Adobe Flash Lite to Run. Continue?"
    But when I click "yes", I get this message:
    "Sorry. Adobe Flash Lite is not available for this device."
    I'm using a Nokia E61i. In the Adobe Mobile Packager, this
    device is not listed under "Distributabele Player Supported
    Devices" so I guess I have to borrow a more up-to-date phone to see
    my application running.

  • How can I submit a request for a feature in a future iPod update.

    I use my iPod via a 3.5mm patch cable to my car stereo which is charged by a Belkin car charger connected to a power socket with is only live when the ignition is on.
    I would like to request an option within the iPod settings that I could enable to make the iPod always have the backlight on when it is connected to an external power source.
    Even better would be for Apple to introduce an option for a "Car Mode" in which, when it detects an external power source with no data line, it would automatically turn the backlight on & begin playing, and revert to normal backlight settings & pause when the power source discontinues
    60 GB iPod Photo   Windows XP  

    You can make feature requests here:
    http://www.apple.com/feedback/ipod.html

  • Lost Ipad today and erased on find my Iphone then later i found it before it was able to erase via wifi how can I reverse the request for erasing to keep all my current content the same

         Today I lost my IPad and was FREAKING OUT !!!!!   When a couple of store attendants told me to use the ICLOUD find my Iphone option in order to erase all the content just in case it fell into wrong hands.    Within an hour via survelance video we located the ipad prior to being able to connect to internet and erase everything.
        Now I am keeping the power off keeping it untouched or unerased,   QUESTION TO COMMUNITY????    Is there a way for me to successfully avoid the erase process  that is due to occurr once I power up and hit the WIFI????   Appreciate any input up front,    BRfromGR

    You cannot prevent it from being erased now. But surely you backup with iCloud or iTunes and/or sync with iTunes so when you get the iPad up and running again, just restore from your iCloud backup, or your iTunes backup and then sync with iTunes again and you will be OK.
    If you don't backup or sync .... Well then you should probably think about doing so in the future. Out of the mouth of a Apple ......
    If you erase then find your iOS device, you can restore the information on the device using iCloud Backup (if backup was turned on before you erased it) or iTunes. For more information, see iCloud storage and backup overview, or your device’s user guide in Safari bookmarks or on the Apple Support website.

  • Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies.

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
    cookies.

    In my experience this is most of the times a server issue of the website provider.
    Does this error occur on all Websites or just one specific Website?
    Does this Website load in Internet Explorer (or any other Browser?)?

  • I can't access Facebook. I keep getting the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete". I have cleared cache, cookies, history, offline storage. Nothing has worked.

    can't access Facebook. I keep getting the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete". I have cleared cache, cookies, history, offline storage. Nothing has worked.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Firefox has detected that the server is redirecting the request for this address in a way that will never complete. *This problem can sometimes be caused by disabling or refusing to accept cookies. I followed the instructions for "redirection" issues.

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
    cookies.

    In my experience this is most of the times a server issue of the website provider.
    Does this error occur on all Websites or just one specific Website?
    Does this Website load in Internet Explorer (or any other Browser?)?

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • How can i redirect to another JSP page automatically after some event

    I am developing a Tic-Tac-Toe game which can be played between two players who are on two different machines.
    When the first player comes to the Welcome page he will redirected to a Waiting Page when he clicks on the 'Start' button.
    When the second player comes to the Welcome page he will be redirected directly to the Game page, on clicking the 'Start' button.
    So how can i redirect the first player to the Game page after the second player is available for the game.
    And if i want to manage multiple instances of my game how can i do that//
    I am using JSP, javascript and MySQL for developing my project, and I am new to all these tools, but i would still like to carry on with all these only

    This is a bit of a challenge because of the nature of the web. Generally the web is "pull only" meaning that the browser has to initiate any interactions - the server can't push data to the browser if it wasn't asked to.
    The easiest way to solve this is using AJAX via JavaScript to periodically poll the server for any status changes. There are other ways (the Comet protocol is one) but they start to get a bit difficult and are still a bit new and not completely supported in a standards way. And to be honest they are still basically polling though in a more efficient way.
    Are you using a JavaScript framework? Most of the JavaScript frameworks that I've used have built in support for polling in the background. You'd have to have the JSP/servlet side be able to handle these polling requests from the browser and, when another person joins the game, the server indicates that and sends that back to the browser.
    As far as multiple instances I would have the server automatically pair up users as needed. So when the first player arrives he has to wait for another player. When the second player arrives a new game is created for those two players. Now a third player arrives and waits until a fourth player shows up. When player 4 joins another separate game is created. Presumably the conversation between the browser and the server will need to include a "game number" or other unique number so that the server can keep track of the games.

  • How can we specify the Mailbox for Notes?

    In Mail.app, how can we specify the Mailbox for Notes (where the new notes will be resided)? It is now 'On My Mac'. I wish to change to my IMAP Mailbox so it sync with my iPhone by just checking email (not by syncing on iTunes).
    Thanks in advance.
    Message was edited by: Ekapon

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • My Ipad 2 external speakers does not work and headphones has popping sound. This all occured at the same time as my Iphone and Ipod headphones only played mono (no, the "mono" option is not on). How can there be audio issue for all these devices?

    My IPad 2 external speaker does not work and the original headphones have popping sound when used. This all occurred at the same time as my IPhone and IPod headphones only plays mono (and no, the "mono" option is not on) with the original headphones, as well as, other headphones tested.  How can there be audio issue for all these devices at the same time?
    As you may have noted from the list of Apple devices I own, I believed in the Apple and the products it was producing; but it is hard to believe from my experience and the other voices within the Apple Community that we are all experiencing the same hardware issues. Especially since I recently, I upgraded to an IPhone 4g (no, my faith in IPhone 5 series is very little) and is experiencing the same audio problem as described above. So now, I am off to the Apple store again to be told that it’s a hardware problem on new IPhone. Really? Apple, what happen to the pride in the product you were producing?

    Everyone does things a little differently. I love to "jam " along with iTunes ( or old Lp's) . Always have. That's where/how I've learned to play .
    I'm sure leonieDF is giving a proper way to jam along on a keyboard with an iTune. He blows my mind all the time with what he knows. Nuff respects to him !
    What I do is make a GB project I call "Jam With". I'll make several new tracks that are blank. Just has a few instruments named in the blank tracks. You can change those per song ...
    Because I'm not concerned about changing the pitch / key.... of the iTune or the tempo ... I can simply play along with it.
    Peace,
    P. Dreadie

  • How can I create a URL for a PWA for MS Project Server 2010 project file that includes the view?

    Hi, this question has been answered for 2013. The answer here suggests that it can be done in  2010.
    See:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/3affdc4f-36bf-4381-8b75-27c73465efd4/action?threadDisplayName=how-can-i-create-a-url-for-a-pwa-for-ms-project-server-2013-project-file-that-includes-the-view
    Who knows how?
    Regards
    Sander

    Hi Sander,
    As far as I tested it, it is not possible either with PS2010. The URL only contains the PDP name and the projUID.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How can identify the default currency for a customer?

    How can identify the default currency for a customer?
    I know that this is being determined when you create a sales order for a particular customer, for example, so I could break this process open and find out what it uses. But I thought it worth asking in this forum first.
    Blue

    Hi Gary,
    As per my understanding of your question I am replying , If you are looking some thing else then I request you to please elaborate your query.
    If you see the BP sales area data in transaction BP, In billing tab you maintain the currency for a customer which is default currency when you create a sales order.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash

Maybe you are looking for