Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting printrequestheaders and printresponseheaders to false doesn't do anything. #30

Open
GoogleCodeExporter opened this issue Apr 2, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

The following should output just the body of the HTTP response:

    <http url="http://domain/etc"
        entityProperty       = "HttpResponse"
        failonunexpected     = "false"
        printrequestheaders  = "false"
        printresponseheaders = "false"
        />
    <echo>${HttpResponse}</echo>

Instead, it is preceeding the echo with:

     [http] HTTP Request
     [http] ********************
     [http] URL:        http://domain/etc
     [http] Method:     GET
     [http] HTTP Response
     [http] ********************
     [http] Status:     200

Which is clogging up the output.

Using missing-link 1.1.3 with Ant 1.8.2

Original issue reported on code.google.com by [email protected] on 8 Jan 2012 at 8:07

@GoogleCodeExporter
Copy link
Author

I have an authentication token in the header and I would prefer it not being 
sent to std out

Original comment by [email protected] on 4 May 2014 at 8:51

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Looking at the source it seems you already have accounted for this except the 
if statement @ line 283 in HttpClientTask.java

 if (httpClient.getHeaders().size() > 0 && printRequestHeaders) {

Great library by the way.. Thanks !

Original comment by [email protected] on 4 May 2014 at 8:55

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant