Jump to content

cURL-like function for javascript?


msaz87

Recommended Posts

AJAX is the current "closest to" equivalent.  However, you cannot make a request to an external URL unless the target server is specifically setup to allow cross domain requests.  

 

There's also web sockets, but it's still (kinda) new, and would also require the target server to be setup for it. 

 

So basically there is currently no way to use javascript to make an unsolicited request to an external domain, and this by design for security reasons.  

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.