Return-Path: Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 12099 invoked from network); 17 Mar 2003 23:10:04 -0000 Received: from unknown (HELO dotech.com) (64.80.105.37) by daedalus.apache.org with SMTP; 17 Mar 2003 23:10:04 -0000 Received: from dotech.com (ns25.dotech.com [10.20.40.254]) by dotech.com (8.11.6/8.11.6) with ESMTP id h2HNAAb12037 for ; Mon, 17 Mar 2003 18:10:10 -0500 Message-ID: <3E7655C7.9030103@dotech.com> Date: Mon, 17 Mar 2003 18:09:59 -0500 From: David Kavanagh User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Commons HttpClient Project Subject: Re: redirects not allowed for PostMethod References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Matt, I went through the same thing a week or two ago. Thing is, what method should the PostMethod use for the redirect? You need to capture the result and issue a GET using the Location response header attribute. David Matthew S. Ring wrote: >Hi, > >I just started using the latest version of the HTTPClient to screen-scrape >from Rational Clear Quest. Unfortunately, CQ expects POSTed requests and >responds with a redirect. IE and Mozilla-based browsers seem OK with that, >but the HTTPClient refuses to follow redirects after a POST, due to stated >conflicts with RFC 2616. Is this stringency really neccesary? Selfishly, it >would be nice if I could just turn off this bit of compliance checking with >a boolean flag. Opinions? > >Thanks. > >-Matthew Ring > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org > >