Hi,

I'm using node-curl for making curl calls. Here is a simple server.js which 
just issues a curl call:

var http = require('http');
var curl = require('node-curl');
var config = require('./config');

var cfgObj = new config.config();
function start(port) {
  function onRequest(request, response) {
    console.log("Request received");

    var options = {
      VERBOSE: 1,
      RAW: 1
    };
    curl.debug = 1;
    curl.setDefaultOptions(options);
    curl('www.yahoo.com', function(err) {
        console.log(this.body);
    });

  }

  http.createServer(onRequest).listen(port);
}

cfgObj.getConfig(null, function(data) {
  start(data.port);
});



The connection to the host is established and it receives the result as 
well:

< HTTP/1.1 200 OK
< Date: Mon, 18 Feb 2013 16:10:07 GMT
< P3P: policyref="http://info.yahoo.com/w3c/p3p.xml";, CP="CAO DSP COR CUR 
ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi 
IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
< Cache-Control: private
< Last-Modified: Mon, 18 Feb 2013 16:00:05 GMT
< Accept-Ranges: bytes
< Content-Length: 392001
< Vary: Accept-Encoding
< Content-Type: text/html; charset=utf-8
< Age: 176
< Server: YTS/1.20.13
< Connection: keep-alive
< 
[cURL 1] receive 2270 bytes
[cURL 1] receive 1388 bytes
[cURL 1] receive 8328 bytes
[cURL 1] receive 1388 bytes
[cURL 1] receive 2776 bytes
[cURL 1] receive 4164 bytes
[cURL 1] receive 4164 bytes
[cURL 1] receive 4164 bytes
[cURL 1] receive 6940 bytes
[cURL 1] receive 5552 bytes
[cURL 1] receive 6940 bytes
[cURL 1] receive 6940 bytes
[cURL 1] receive 6940 bytes
[cURL 1] receive 6940 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 15268 bytes
[cURL 1] receive 6940 bytes
[cURL 1] receive 5552 bytes
[cURL 1] receive 8328 bytes
[cURL 1] receive 8328 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 1388 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 2776 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 6940 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 5552 bytes
[cURL 1] receive 8328 bytes
[cURL 1] receive 8328 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 9716 bytes
[cURL 1] receive 11104 bytes
[cURL 1] receive 16384 bytes
[cURL 1] receive 16384 bytes
[cURL 1] receive 3023 bytes
* Connection #0 to host www.yahoo.com left intact
[cURL 1] receive succeeded.
*Bus error: 10*

But ends up with this bus error. Any clue what this error means? I even 
tried using http request. In that case, even connection could not be made 
with the host. It just gives "socket hang up" error. 
I'm using node 0.8.19.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to