{"action":"created","issue":{"url":"https://api.github.com/repos/JCMais/node-libcurl/issues/31","labels_url":"https://api.github.com/repos/JCMais/node-libcurl/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/JCMais/node-libcurl/issues/31/comments","events_url":"https://api.github.com/repos/JCMais/node-libcurl/issues/31/events","html_url":"https://github.com/JCMais/node-libcurl/issues/31","id":106397344,"number":31,"title":"curl.option is undefined","user":{"login":"Jakobud","id":87356,"avatar_url":"https://avatars.githubusercontent.com/u/87356?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakobud","html_url":"https://github.com/Jakobud","followers_url":"https://api.github.com/users/Jakobud/followers","following_url":"https://api.github.com/users/Jakobud/following{/other_user}","gists_url":"https://api.github.com/users/Jakobud/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakobud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakobud/subscriptions","organizations_url":"https://api.github.com/users/Jakobud/orgs","repos_url":"https://api.github.com/users/Jakobud/repos","events_url":"https://api.github.com/users/Jakobud/events{/privacy}","received_events_url":"https://api.github.com/users/Jakobud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-14T18:08:03Z","updated_at":"2015-09-15T12:30:31Z","closed_at":null,"body":"I'm trying to figure out a list of all the options available. In your examples for uploading a file, you use `curl.option.HTTPPOST`. `HTTPPOST` is not a listed valid curl option in any documentation that I can see. I see `POST` but not `HTTPPOST`. So anyways, according to your doc's, the `curl.option` is an Object with all the valid options in it. So in an attempt to learn more, I did this:\r\n\r\n```\r\nvar Curl = require('node-libcurl').Curl;\r\nvar curl = new Curl();\r\nconsole.log(curl.option);\r\n```\r\n\r\nI get `undefined`. Am I missing something here? How do I see the list of all available options? I need to upload a file using http PUT, but I have no idea what option name to use for this in your library..."},"comment":{"url":"https://api.github.com/repos/JCMais/node-libcurl/issues/comments/140372996","html_url":"https://github.com/JCMais/node-libcurl/issues/31#issuecomment-140372996","issue_url":"https://api.github.com/repos/JCMais/node-libcurl/issues/31","id":140372996,"user":{"login":"JCMais","id":1041647,"avatar_url":"https://avatars.githubusercontent.com/u/1041647?v=3","gravatar_id":"","url":"https://api.github.com/users/JCMais","html_url":"https://github.com/JCMais","followers_url":"https://api.github.com/users/JCMais/followers","following_url":"https://api.github.com/users/JCMais/following{/other_user}","gists_url":"https://api.github.com/users/JCMais/gists{/gist_id}","starred_url":"https://api.github.com/users/JCMais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCMais/subscriptions","organizations_url":"https://api.github.com/users/JCMais/orgs","repos_url":"https://api.github.com/users/JCMais/repos","events_url":"https://api.github.com/users/JCMais/events{/privacy}","received_events_url":"https://api.github.com/users/JCMais/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T12:30:31Z","updated_at":"2015-09-15T12:30:31Z","body":"As this is a binding for libcurl, in javascript, it has some limitations. Not all options are going to have the same type requirement, and not all options are going to be available.\r\n\r\nREADDATA is one of those. READDATA needs a file pointer that can be read by the libcurl READFUNCTION, it's not possible to pass a javascript file descriptor because of that. And it's not possible to change the READFUNCTION from javascript, since it requires a c function callback.\r\n\r\nI will take a look into that to see what I can do. But I'm problem going to find some problems, like this one https://github.com/nodejs/node-gyp/issues/416 "}}