Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 45525 invoked from network); 11 Apr 2010 21:56:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Apr 2010 21:56:36 -0000 Received: (qmail 43645 invoked by uid 500); 11 Apr 2010 21:56:35 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 43584 invoked by uid 500); 11 Apr 2010 21:56:35 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 43576 invoked by uid 99); 11 Apr 2010 21:56:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Apr 2010 21:56:35 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rangeli.nepal@gmail.com designates 209.85.221.191 as permitted sender) Received: from [209.85.221.191] (HELO mail-qy0-f191.google.com) (209.85.221.191) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Apr 2010 21:56:27 +0000 Received: by qyk29 with SMTP id 29so5205164qyk.2 for ; Sun, 11 Apr 2010 14:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=atuIVeSbCDfUhLezDkiffQPAa6lEG1e/vquQuPK2SoA=; b=FN2RtfNOStw4ol+5mWs+t8Awyo7vGN8RTRYOXtGIBdoRP3nBER5GR8Ac4n4sdaIZlb yoIcVRie5rYk0IfJUDDfdjU9p0pwNKN9u/+jkHcze0kvSG615JF5jEhOsktHKsN/v2nn tWrWMYs4HwZT+WIErBvctKS8fI8Ri9famDlDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=b+aAUUOX5JQlBN1uvuIv9ht20pH2eqrIMOs4EGFdouav70xbTOP39QKaDMZ3jna1KY 9cWiuiRqwJycEYmknArVMaKFmUaHZIMLq4vK3kpsNTKzCx5FQTksKHb/sB3SkO/o45gy i0c85LZovXMZR2xO0SXQx/EPQd6yAiIOD7S8A= MIME-Version: 1.0 Received: by 10.229.84.196 with HTTP; Sun, 11 Apr 2010 14:56:06 -0700 (PDT) In-Reply-To: <1271013943.2320.1.camel@ubuntu> References: <1271013943.2320.1.camel@ubuntu> Date: Sun, 11 Apr 2010 17:56:06 -0400 Received: by 10.229.213.140 with SMTP id gw12mr4672272qcb.96.1271022966134; Sun, 11 Apr 2010 14:56:06 -0700 (PDT) Message-ID: Subject: Re: Manually Setting up Authorization Header. From: rangeli nepal To: HttpClient User Discussion Content-Type: multipart/alternative; boundary=00163630f44565ebe70483fd1851 X-Virus-Checked: Checked by ClamAV on apache.org --00163630f44565ebe70483fd1851 Content-Type: text/plain; charset=ISO-8859-1 I guess that decision is pretty much guided by the propriety protocol that we are planning to use. Reading the documentation for LimitRequestFieldsize at following site, it claims SPNEGO authentication headers can be up to 12392 bytes. so 2.5 k is not that unusual. :) http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestfieldsize On Sun, Apr 11, 2010 at 3:25 PM, Oleg Kalnichevski wrote: > On Sun, 2010-04-11 at 13:19 -0400, rangeli nepal wrote: > > Good Evening Everybody, > > > > I am trying to seup Authorization header in GET method like this. > > > > Header authHeader=new Header(); > > authHeader.setName("Authorization"); > > > > > > > > > > StringBuffer prefix=new StringBuffer(" Custom CustomToken="); > > > > //Put based 64 encoded string here. > > prefix.append(encodedString);//.append("\""); > > > > > > authHeader.setValue(prefix.toString()); > > method.setRequestHeader(authHeader); > > > > However when it goes to the server. I get following on server log: > > > > request failed: error reading the headers > > > > I tried to do tcpdump. It seems Authorization Header is received in two > > parts ( makes sense as it's size is 2.5K) . But server sends error after > > receiving first part. > > Why on earth are you trying to use an HTTP header to send 2.5K of data? > > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > --00163630f44565ebe70483fd1851--