Solved

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

Posted on 2014-10-21
2
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

696 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