Solved

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

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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.…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

717 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