some changes will debugging issue #301

some changes will I am debugging for issue #301.

- the CURL0PT_POSTFIELDS options should have the key => value format.
- adding test case to make sure the content-type header is set properly for Extract query.