Jump to content

Node.JS xmlhttprequest


Recommended Posts

I'm wanting to create a very simple NodeJS server that filters/forwards JSON request and responses.

Currently I have my SmartMobileStudio built web application using unit W3C.XMLHttpRequest to talk directly to a JSON REST store, but I want to insert this a server between these. 

I thought it was going to be a simple matter of reusing W3C.XMLHttpRequest, however it seems I shouldn't use this class since it is W3C - meaning web browser only?

Do I need a NodeJS.XMLHttpRequest unit?

Unfortunately my research has found that NodeJS doesn't support that XMLHttpRequest out of the box but does via the following package:

https://www.npmjs.com/package/xmlhttprequest

How would I best be to go about trying to get this working?

Thanks in advance.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...