Permalink
Browse files

Updated the README.md file with more helpful text

  • Loading branch information...
1 parent 4f67782 commit f22664a3fbdc0d97eafd2ef71d93d1911660239e @knarf-se committed Jul 1, 2011
Showing with 5 additions and 1 deletion.
  1. +2 −1 ndll/Source/curl_wrap.c
  2. +3 −0 tests/Server.js
View
3 ndll/Source/curl_wrap.c
@@ -60,7 +60,8 @@ value newCurl ()
return ak_curl;
} DEFINE_PRIM(newCurl,0);
-value setUrl ( value curl_handle, value url ) {
+value setUrl ( value curl_handle, value url )
+{ // Set the URL to use for the request
val_check_kind( curl_handle, k_curlHandle );
val_match_or_fail( url, string );
View
3 tests/Server.js
@@ -10,6 +10,7 @@ http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
switch(req.url){
case '/post':
+ // Act like an echo command
req.on('data', function(chunk) {
res.write(chunk);
});
@@ -19,6 +20,8 @@ http.createServer(function (req, res) {
});
break;
case '/head':
+ // Check that the incoming request states that its payload is
+ // text/xml encoded with UTF-8 encoding
if (req.headers['content-type'] == 'text/xml;charset="utf-8"')
res.end('ok');
else

0 comments on commit f22664a

Please sign in to comment.