Index: utils/ofhttp/OFHTTP.m ================================================================== --- utils/ofhttp/OFHTTP.m +++ utils/ofhttp/OFHTTP.m @@ -137,14 +137,22 @@ [_clientHeaders setObject: value forKey: name]; } -- (void)setBody: (OFString*)body +- (void)setBody: (OFString*)file { [_body release]; - _body = [[OFDataArray alloc] initWithContentsOfFile: body]; + + if ([file isEqual: @"-"]) { + void *pool = objc_autoreleasePoolPush(); + + _body = [[of_stdin readDataArrayTillEndOfStream] retain]; + + objc_autoreleasePoolPop(pool); + } else + _body = [[OFDataArray alloc] initWithContentsOfFile: file]; } - (void)setMethod: (OFString*)method { void *pool = objc_autoreleasePoolPush();