Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9251867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:48:25+00:00 2026-06-18T10:48:25+00:00

I used the example provided here Netty HTTP Authetication for Client but still having

  • 0

I used the example provided here
Netty HTTP Authetication for Client
but still having 401 response

when I print the request header I can see that all is good except one thing, the Authorization is:

Authorization: YWRtaW46YWRtaW4=

When I do the same authentication with Chrome for instance, I have:

Authorization: Basic YWRtaW46YWRtaW4=

nothing special in netty doc about how to add Basic in the header

When I catch the failing message with a tool like tcpmon and resend the message by adding manually the Basic string, it works fine.

My question could be how to add Basic in the header submitted by netty ?

does someone faced this before ?

thnx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:48:26+00:00Added an answer on June 18, 2026 at 10:48 am

    I finally did a hack in org.jboss.netty.handler.codec.http.HttpHeaders#addHeader method:

        void addHeader(final String name, final Object value) {
        validateHeaderName(name);
        String strVal = toString(value);
        HttpCodecUtil.validateHeaderValue(strVal);
        int h = hash(name);
        int i = index(h);
    
        if (Names.AUTHORIZATION.equals(name)) strVal = "Basic "+strVal;
        addHeader0(h, i, name, strVal);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create an struct-array. I used the example provided by @JonSkeet
I used this example (http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/) to upload file from android device to server, it
Could you tell me some http-streaming tutorial or example ( used also by Gmail
I used this MSDN example to construct my console host app: http://msdn.microsoft.com/en-us/library/ms731758.aspx It works
I've used this example to to implement some sort of guestbook, only I'm using
Consider this classic example used to explain what not to do with forward declarations:
I've used some neat example's from attached URL's. What I've got so far is
I found this example and used it How do you resize a Bitmap under
I created a duplex service ( NetTcpBinding ) like this example : I used
For example DbVisualizer can be used to connect to a DB and create nice

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.