Can someone tell me about encode,decode for http url parameters

All,I got a problem that i want to redirect a url takes some parameters by GET type.if one parameter with url is a passwd field ,i thought it must be encode.And decode by recive-page.what class default in java can i use to encode the field and decode it.Or any solution better.please tell me.thank~

NEVER send a password using a GET - always use a POST. Otherwise, the password will be transmitted in plain text in the GET header.
URLEncode / decode is used to convert non-allowed ASCII characters (i.e. characters not allowed by the specification in parameter names or values) into a hex representation so they can be properly parsed. The receiving end uses URLDecode so the receiver obtains the exact parameters that were sent.
For example, if you wanted to pass a parameter called 'name' a value of 'big joe', you could try doing:
GET Servlets/myServlet?name=big joe
but this would not be valid, because spaces are not allowed in URL parameter lists (although Microsoft IE and IIS incorrectly allow this).
Instead, you should send:
GET Servlets/myServlet?name=big%20joe
The ascii value of a space is 32, which is hex 20 (0x20), thus the %20.
Hope that helps!
- K

Similar Messages

  • Can someone tell me about how can I set it right

    i cant convert vids to mp4 can someone tell me like how can i set the videora pleaseee

    Hi Mark,
    Safari isn't intended to be an upload client for FTP'ing. For that you'll need a dedicated FTP client like CyberDuck.
    For some reason, on this computer, when I build an HTML file and save it, then open it using safari, I get the source code instead of the rendering of the source code.
    Which editor are you using to do this? I'm guessing TextEdit - if that's the case, use the Format menu -> Make Plain Text option to save the .html file. You'll then be able to save the file with whatever extension you prefer for JavaScript etc.
    want to switch back to the textedit application using COMMAND + tab the application doesn't open up. It remains minimized in the dock
    I know what you mean here and it is a bit frustrating. If you really want to stick with the keyboard you can do Ctrl+F2 then use the arrow keys to select the appropriate window from the Window menu. Normally I just keep the windows on screen and use Exposé to quickly retrieve the window.
    Hope some of that helps.

  • Can anyone tell me about expiry dates for iTunes cards?

    I thought that they expired either one or two years after the most recent use. Since the update to the site, I am no longer able to find either the T&Cs for iTunes cards, or details of expiry dates in My Account. Can anyone tell me where to get this info?  Thanks.

    iTunes cards do not have an expiration date.  And, once you redeem them, they create a credit balance in your account, which also does not exprire. 
    However, nobody can guarantee that this will be permanent, so it would be best not to let them sit around for years.

  • Can someone tell me the *newest* model # for isight?

    Hi all,
    Can someone please tell me which is the newest model # (or the last model # Apple shipped) Was is the M9330LL/C or the M8817LL/C.
    Or maybe I am totally off?
    Thanks in advance guys!
    (if I have to go through ebay to get my isight (shame on you Apple) then I would at least like the latest release!)

    Thanks Ken and J.V. I appreciate it!
    j.v. - thanks a bunch, you told me everything I wanted to know!

  • Can someone tell me the menu path for MLRP?

    Our SAP system is down and I can't remember the menu path......
    Type SEARCH_SAP_MENU in the transaction box for speed.
    Ta

    Hi the menu path is as below,
    Logistics>> Material Mgt>>Purchasing>> Purchase Order>>Follow on Function>> MLRP
    Please reward if it helps
    Thanks & regards,
    Indrashish

  • Can someone tell me the ratio's for the Neo2's dividers?

    I just can't work it out 
    I know the 133Mhz selection is CPU/14, as thats what I'm running now, but the mem is only at 180Mhz not the full 200Mhz or higher :(

    Thanks Ken and J.V. I appreciate it!
    j.v. - thanks a bunch, you told me everything I wanted to know!

  • Can someone tell me the correct driver for the fuji xerox docuprint p205b for os x  as the one on the fuji site does not work thank you!

    I am desperate to find the correct driver for the p205b docuprint priner i know that the one on the fuji site is wrong and you need to install a driver for anothe rmodel as I found this in a forum last year and successfully installed on another mac but now I don't know where I got the info from, help !!!  =)

    I have the same printer and I'm using Lion 10.7.4.
    I'm facing problems getting the mac to print via wireless.
    I've installed the driver from http://support.apple.com/kb/DL904 as suggested by sig.
    I've linked up the printer to the router via usb. It works like a charm with usb on Lion and wireless on windows.
    Could anybody help ? I've included photos for more information. Many thanks.

  • Can anyone tel me about flash player for Ipod Touch

    Will apple release Flash player for browser in Ipod touch and Iphone? I am eagerly waiting for that. I am new to this forum so kindly help me out with your replies and ideas for further reading.
    I use a Ipod touch 4G

    No, I would stop waiting if I were you.
    See this article, http://www.apple.com/hotnews/thoughts-on-flash/ from Steve Jobs in April 2010. It is the only further reading you will need.
    Phil

  • I changed my browser url to blank now I cannot find bookmarks or menu toolbar, pls can someone tell me how to restore to original url setting?

    I tried to remove thumbnails from Firefox & following online advice went to browser.newtab.url and changed it to "blank", now when I open Firefox the menu bar with bookmarks etc is missing, but when I open a new tab the thumbnail images are still there, I don't have much experience & would appreciate advice as to how to restore. I tried restoring computer to earlier time but that didn't not restore the browser url to the state before I started messing with it. Please help!

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    If you are in full screen mode then hover the mouse to the top of the screen to make the Navigation Toolbar and Tab bar appear.<br>Click the Maximize button (top right corner of the Navigation Toolbar) to leave full screen mode or right-click empty space on a toolbar and choose "Exit Full Screen Mode" or press the F11 key.
    You can use one of these to set which toolbars to show.
    *"3-bar" Firefox menu button > Customize > Show/Hide Toolbars
    *View > Toolbars<br>Tap the Alt key or press F10 to show the Menu Bar
    *Right-click empty toolbar area
    What is the current value of the browser.newtab.url pref?
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved
    You can create a new Boolean pref on the about:config page to prevent Firefox from generating thumbnails for the about:newtab page.
    *name: browser.pagethumbnails.capturing_disabled with value: true
    Delete the thumbnails folder in the Firefox profile folder to remove already stored web page thumbnails.

  • Can someone tell me how to fix this error in 10.4.11 on a G5 Quad Core 2.5GHz Tower...A valid video device could not be found for playback. [-70017]

    Can someone tell me how to fix this error in 10.4.11 on a G5 Quad Core 2.5GHz Tower...A valid video device could not be found for playback. [-70017]

    That's an error reported from DVD Player I believe...
    kDVDErrorMissingGraphicsDevice = -70017, // A valid graphics device is not available.
    There's some conjecture it has to do with HDCP, or Video Card problems, but the only 2 cures/fixes I found were Software related, one was cured by updating the OS, another by replacing the Video kexts.
    I think this error also shows up if trying to use DVD player in Safe Mode, (too much research isn't good! ).
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware>Graphics/Displays and report like this...
    NVIDIA GeForce 7800GT:
      Chipset Model:          GeForce 7800GT
      Type:          Display
      Bus:          PCI
      Slot:          SLOT-1
      VRAM (Total):          256 MB
      Vendor:          nVIDIA (0x10de)
      Device ID:          0x0092
      Revision ID:          0x00a1
      ROM Revision:          2152.2
      Displays:
    VGA Display:
      Resolution:          1920 x 1080 @ 60 Hz
      Depth:          32-bit Color
      Core Image:          Supported
      Main Display:          Yes
      Mirror:          Off
      Online:          Yes
      Quartz Extreme:          Supported
    Display:
      Status:          No display connected
    Can't think of much to try at the moment, but perhaps reapplying the big 10.4.11 combo, Repair Permissions, & reboot would help, not sure.
    The combo update for PowerPC-based Macs...
    http://www.apple.com/support/downloads/macosx10411comboupdateppc.html

  • CC build from 7/3/2014 says under whats new "Latest build of Lightroom is now available to free members" Well I'm a free CC member and I'm not seeing a free LR version. can someone tell me where I can find it Free. All I see is Trial or BUY. Thanks For an

    CC build from 7/3/2014 says under whats new "Latest build of Lightroom is now available to free members" Well I'm a free CC member and I'm not seeing a free LR version. can someone tell me where I can find it Free. All I see is Trial or BUY. Thanks For any help

    Can't find what you are talking about, could you post a link.
    I see the following.
    Quote "Select any of the applications below to download a free trial.  Or sign up for your free trial of Creative Cloud to get free access to all of these applications, mobile apps, web storage, and more."
    Its all referring to trials.

  • Can someone tell me what settings I need for ipad texting.  Went to Mexico and now can't get the texting to work at all on ipad.  Thanls

    Can someone tell me what settings I need for ipad texting.  I went to Mexico and when I returned the texting does not work on my ipad.  The support at Apple wanted to charge me to get info.
    THanks

    Can't address the problem directly, cause even though my iPad4 is Cell+Wi-Fi, I've never put a SIM in it and never had the need to text, SMS or iMessage, from it. When away from the office or home wireless network, I tether it off the iPhone. Skype, both text and video, work just fine thru the Wi-Fi link, though.
    HOWEVER, when I was hashing out the contract details to get the iPhone 5 about 14 months ago at Telcel, the representative distinctly mentioned that both Visual Voicemail as well as iMessages would be included in the package and they would be mandatory cause "I was getting a (subsidized) Apple iPhone" on a 24 month leash. Then when the gizmo came out of its box for SIM installation and activation, she went thru the motions of making sure both were working properly.  So I assume the carrier has some say in the matter.

  • Can someone tell me what this effect is for FCPX

    Can someone tell me what this effect is for FCPX
    Im talking about the "after image" looking effect in the picture

    at first, I would suggest, under Effects/Tiling "Visual echo"
    (Apple added that effect in some update …)
    but on looking closer on your example, it asks for more finesse:
    the shadow arm is keyed over the original ...
    maybe some smart arrangement of layered, processed and delayed green-screening?
    (means, not shot in font of a black bg, to get a clean key of subject...) 
    … would be my shoestring-budget solution
    or, looks like masking, tracking, etc .. maybe tools like coremelt's SliceX could help you.

  • For some reason the system is telling me my birth date is wrong when it's not and it won't let me proceed to reset my password. Can someone tell me how to get a "real" person from tech on line?

    For some reason the system is telling me my birth date is wrong when it's not and it won't let me proceed to reset my password. Can someone tell me how to get a "real" person from tech on line?

    contact itunes support

  • I bought my little brother an iPod touch 2nd generation for Xmas so we could text since we love states away but it won't verify and complete updating so I can download the texting apps required by iOS 4 or later can someone tell me how to update it please

    I bought my little brother an iPod touch 2nd generation for Xmas so we could text since we love states away but it won't verify and complete updating so I can download the texting apps required by iOS 4 or later can someone tell me how to update it please

    What exactly happens when you try to update the iPod? What does the error message say?
    Also, are you sure yo have a 2G iPod?
    See:
    Identifying iPod models
    I ask since a 1G can only go to iOS 2.x via iTunes and highest is 3.1.3 via
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)

Maybe you are looking for

  • To get tax values for a particular Purchase Order No.

    In ME23N,when i enter PO no.,in the "Invoice" tab at Item level,when i click on the "TAXES" button, I get all the different values of taxes . I want ot create a report in which i will enter the PO no. and it should display all these values in differe

  • FrameMaker 11 trial version crashing on save and cross-reference insertion

    Hi everyone, I've recently started a new position. My prior background was heavily DITA, and I'd describe my FrameMaker experience as late beginner or early intermediate. The new position uses FM exclusively though, so I've been on a steep learning c

  • Where to check/enable for log keeping track of transport rule actions?

    I have implemented some transport rules to "journal" all emails from specific clients as per this thread.  So there are 4 transport rules to capture all those email: 1. email from Clients (incoming / FROM) 1.1 from users outside the organization. 1.2

  • Exporting QT from FCP for website

    I recently posted about this and got a good answer, but now I have more questions..... I have a DV NTSC 48K 4:3 project in FCP that is 2 minutes long. I exported it as a QT through QT Conversion at a size of 320x240, and chose AAC as a sound format,

  • Frequent freezes after MobileMe update... any cure?

    Since the MobileMe update yesterday, my 2.66GHz Dual Core Intel Mac Pro (running Leopard 10.5.4) has been freezing for up to 60 seconds at a time. It has happened across all applications, including the Finder. It does not crash the OS or applications