chriso/node.io — Issue #66: Cannot nest getHtml/postHtml
Author: mhart
Created: 2011-11-10 03:53:53+00:00
State: open

The following job:

```coffeescript

class TestJob extends nodeio.JobClass
input: [0..5]
run: (num) ->
@get 'google.com', =>
@getHtml 'google.com', =>
@emit num
```

Results in:

```
$ node.io test
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
OK: Job complete
```

If `getHtml` is changed to `get`, then the job functions correctly:

```coffeescript

class TestJob extends nodeio.JobClass
input: [0..5]
run: (num) ->
@get 'google.com', =>
@get 'google.com', =>
@emit num
```

Results in:

```
$ node.io test
0
1
2
3
4
5
OK: Job complete
```

This seems to make it very difficult to do any parsing that requires a login form, or post, or anything similar.

Is this intended behaviour, or am I missing something completely?