Comments (13)
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.
Original comment by [email protected]
on 18 Aug 2011 at 12:55
- Changed state: Started
from missing-link.
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.
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.
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.
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.
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.
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.
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.
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.
[deleted comment]
from missing-link.
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.
Original comment by [email protected]
on 19 Aug 2011 at 12:51
- Added labels: Project-ant-http
from missing-link.
Related Issues (20)
- HTTP GET to outFile in non-existent directory doesn't create parent directories HOT 9
- Add support for saving header values to properties HOT 6
- '303 See Other' redirect status from a POST reported as '200 OK' HOT 5
- Include IOException error message when response entity write fails HOT 2
- Property support for entity does not work
- Modify (or add new) the task to support usage inside a waitfor task
- HTTPS <keystore> only supports trust stores and is confusing HOT 4
- Setting printrequestheaders and printresponseheaders to false doesn't do anything. HOT 2
- Allow connections to SSL sites with invalid certificates HOT 2
- POST Files HOT 1
- property expansion for entity text, and new setcontentlengthheader attribute. HOT 1
- The order of the query string parameters is changed HOT 1
- Missing Link should be in the central maven repository HOT 1
- Does not work with paths which include encoded characters
- Support for nested filest
- Add support for multipart http uploads HOT 1
- Equal sign in query value HOT 1
- Add support for persisting cookies in a property
- Add TravisCI integration for automatic testing
- Rewrite history to use git tags rather than svn-style trunk/tag-branches.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from missing-link.