I think node-curl is good but you probably lose connection pool handling,
which is managed by http.request.  For high load, I won't bet on node-curl,
rather, i will use node http.request.

On Thu, Jan 17, 2013 at 7:00 AM, Burak Gürbüz <[email protected]> wrote:

> Thanks. Actually the only problem is i'm having connection problem often.
> I'm using node-curl thats why. I don't have any connection problem.
>
> 17 Ocak 2013 Perşembe 14:51:13 UTC+2 tarihinde Arunoda Susiripala yazdı:
>>
>> Yes. He has a problem with node-curl.
>>
>> But my point is node-curl is a node binding to libcurl.
>> So it has to cross the javascript to C++ boundary.
>> And it is a cost operation.
>>
>> So the better option is to use a node module instead of node-curl.
>>
>> I know curl has fancy features. Try to see https://github.com/mikeal/**
>> request <https://github.com/mikeal/request> can suit your needs. If so
>> use it.
>>
>>
>> On Thu, Jan 17, 2013 at 2:11 PM, Arunoda Susiripala <
>> [email protected]> wrote:
>>
>>> Why you need curl.
>>> Node has good http modules. request is a good one.
>>>
>>>
>>> On Thursday, January 17, 2013, Berger Kennedy FOTSO wrote:
>>>
>>>> Install curl first.
>>>>
>>>> Or set $NODE_CURL_H to a valid path (/usr/local/include/curl/curl.**h)
>>>>
>>>>
>>>> 2013/1/16 <[email protected]>
>>>>
>>>> This error comes up when i try to install node-curl package.
>>>>
>>>> P.S: I can install any other packages.
>>>>
>>>> npm http GET 
>>>> https://registry.npmjs.org/**node-curl<https://registry.npmjs.org/node-curl>
>>>>
>>>> npm http 304 
>>>> https://registry.npmjs.org/**node-curl<https://registry.npmjs.org/node-curl>
>>>>
>>>>
>>>> > [email protected] install /root/node_modules/node-curl
>>>>
>>>> > sh src/generate_curl_options_**list.sh && (node-gyp rebuild ||
>>>> node-waf configure build)
>>>>
>>>>
>>>> extract constants from
>>>>
>>>> generate src/integer_options.h
>>>>
>>>> cat: : No such file or directory
>>>>
>>>> generate src/string_options.h
>>>>
>>>> cat: : No such file or directory
>>>>
>>>> generate src/integer_infos.h
>>>>
>>>> cat: : No such file or directory
>>>>
>>>> generate src/string_infos.h
>>>>
>>>> cat: : No such file or directory
>>>>
>>>> generate src/double_infos.h
>>>>
>>>> cat: : No such file or directory
>>>>
>>>> make: Entering directory `/root/node_modules/node-curl/**build'
>>>>
>>>>   CXX(target) Release/obj.target/node-curl/**src/node-curl.o
>>>>
>>>> In file included from ../src/node-curl.cc:1:0:
>>>>
>>>> ../src/node-curl.h:7:23: fatal error: curl/curl.h: No such file or
>>>> directory
>>>>
>>>>
>>>>  --
>>>> Job Board: http://jobs.nodejs.org/
>>>> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-
>>>> **Posting-Guidelines<https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
>>>> You received this message because you are subscribed to the Google
>>>> Groups "nodejs" group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> nodejs+unsubscribe@**googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en>
>>>>
>>>
>>>
>>> --
>>> Arunoda Susiripala
>>>
>>> @arunoda <http://twitter.com/arunoda>
>>> <http://gplus.to/arunoda>https://github.com/arunoda
>>> http://www.linkedin.com/in/**arunoda<http://www.linkedin.com/in/arunoda>
>>>
>>>
>>
>>
>> --
>> Arunoda Susiripala
>>
>> @arunoda <http://twitter.com/arunoda>
>> <http://gplus.to/arunoda>https://github.com/arunoda
>> http://www.linkedin.com/in/**arunoda <http://www.linkedin.com/in/arunoda>
>>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to