mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-30 21:58:32 +00:00 
			
		
		
		
	update
This commit is contained in:
		
							
								
								
									
										16
									
								
								node_modules/xmlhttprequest-ssl/example/demo.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								node_modules/xmlhttprequest-ssl/example/demo.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| var sys = require('util'); | ||||
| var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | ||||
|  | ||||
| var xhr = new XMLHttpRequest(); | ||||
|  | ||||
| xhr.onreadystatechange = function() { | ||||
| 	sys.puts("State: " + this.readyState); | ||||
| 	 | ||||
| 	if (this.readyState == 4) { | ||||
| 		sys.puts("Complete.\nBody length: " + this.responseText.length); | ||||
| 		sys.puts("Body:\n" + this.responseText); | ||||
| 	} | ||||
| }; | ||||
|  | ||||
| xhr.open("GET", "http://driverdan.com"); | ||||
| xhr.send(); | ||||
		Reference in New Issue
	
	Block a user
	 tatianamac
					tatianamac