Code Monkey home page Code Monkey logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024

Original comment by [email protected] on 18 Aug 2011 at 12:55

  • Changed state: Accepted
  • Added labels: Milestone-1.1.3, OpSys-All, Type-Enhancement
  • Removed labels: Type-Defect

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024

Original comment by [email protected] on 18 Aug 2011 at 12:55

  • Changed state: Started

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Added an attribute to the root http task "statusProperty" which defines a 
property to save the response status to.  For example:

  <target name="get">
    <http url="http://www.google.com/asfaf" statusProperty="out.status" failOnUnexpected="false"/>
    <echo message="Response Status: ${out.status}"/>
  </target>

Will be available in the 1.1.3 release

Original comment by [email protected] on 18 Aug 2011 at 1:11

  • Changed state: Fixed

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Great!

Would it be possible to add outputProperty as well?

Original comment by [email protected] on 18 Aug 2011 at 1:16

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Whoops,  missed that part.. need to redact 1.1.3 that I'm in the middle of 
releasing

Original comment by [email protected] on 18 Aug 2011 at 2:44

  • Changed state: Accepted

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Added an attribute to the root http task "entityProperty" which defines a 
property to save the response entity to.  For example:

  <target name="http-get">
    <http url="http://www.google.com" entityProperty="ent"/>
    <echo message="resp: ${ent}"/>
  </target>

Original comment by [email protected] on 18 Aug 2011 at 2:54

  • Changed state: Fixed

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Great!

Would it be possible to add headerProperty as well?  That way, one could save 
the entire set of headers, from which one could extract values.

Our specific use case is to save the cookie value returned an initial response, 
to be used in subsequent requests.

Original comment by [email protected] on 18 Aug 2011 at 6:48

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
I can, but i already did 1.1.3 this morning.. If you like, open up a new 
enhancement issue and i'll do a quick 1.1.4 release

Original comment by [email protected] on 18 Aug 2011 at 9:09

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
What would you expect this to look like? I wouldn't want to dump all headers 
into a string, then formatting etc would have to be assumed

maybe something like

<http ...>
  <saveHeader name="Cookie-X" property="my.prop"/>
</http>

Original comment by [email protected] on 18 Aug 2011 at 9:11

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Thanks, Alex!

Being able to save the value of any specific header to a property would be 
terrific - far better than having to parse a monolithic string containing all 
of the headers and their values.

How do you suggest handling values of headers, like Set-Cookie, that can appear 
more than once in a response?

(Thanks as well, Anders, for your contributions - much appreciated!)

Original comment by [email protected] on 19 Aug 2011 at 5:48

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
[deleted comment]

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
See Issue 24 for a continuation of the discussion for saving header values

Original comment by [email protected] on 19 Aug 2011 at 12:31

from missing-link.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024

Original comment by [email protected] on 19 Aug 2011 at 12:51

  • Added labels: Project-ant-http

from missing-link.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.