Solved

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

Posted on 2014-10-21
2
248 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now