Solved

GWT RequestBuilder.setHeader or java.net.httpUrlConnection.SetRequestProperty

Posted on 2014-10-21
2
273 Views
Last Modified: 2014-10-21
Hi Experts,

I am setting a header (sometimes with GWT, sometimes with httpurlConnection).  This header may have some characters that are not URL ready.  But headers are not URLs.  Do I need to URL.encode() the value of the headers?

Thanks,
Mike
0
Comment
Question by:thready
2 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40395398
I think it probably depends on the characters and language.  The standards that apply are here
http://tools.ietf.org/html/rfc5987
You probably want to work through from section 3.2 to see what applies to what you are doing.

This is perhaps a less academic presentation that might be a little clearer, but it is a bit old:
http://www.webstandards.org/learn/articles/askw3c/dec2002/

If you provide detail about what you are trying to put in the headers and what problems you are encountering, we might be able to give a more definitive answer.

Cd&
0
 
LVL 1

Author Closing Comment

by:thready
ID: 40395434
That's good enough for me!  Thanks!  :-)
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question