possible fix for issue #270

This pull request is a possible fix for Issue https://github.com/topcoat/topcoat/issues/270.

With this fix, the environment variables are read and passed to request.