I am writing a chrome extension and I want to use Curl to get links to download gmail attachments. How am I supposed to do this? I'm new to curl and I don't know how can I use the curl library in javascript?
You cannot use cURL directly in Javascript. You can do AJAX. So one solution would be to install a php script somewhere that you can use to get links from gmail.
EDIT: here is the implementation of cURL in javascript here . Check this.
As a reference, the same origin policy in javascript. Although there seem to be workarounds, security will always be a problem.
Source: https://habr.com/ru/post/922258/More articles:Is this a good return type template for designing a Scala API? - scalaC ++ pointers and references require clarification - c ++MVC model not updating - asp.net-mvcHow to correctly display the view of the Trunk puppet collection based on the properties of the javascript model array? - backbone.jsWITSML api library for .Net / C # client applications? - c #Embedding on an android canvas - androidIs it possible to add an operation to a list in Python? - pythonPosting the Page_PreInit event manually, with the AutoEventWireup parameter - false - c #Alternative to CGRectMake - cScala list contains vs array contains - scalaAll Articles