Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Curl in javascript

I am writing a chrome extension and I want to use Curl to get me the download links of the gmail attachments. How should i do it? I am new to curl and i don't know how would i able to use the curl library in javascript ?

like image 408
Chandeep Avatar asked Aug 07 '12 04:08

Chandeep


1 Answers

You can't use cURL directly in Javascript. You can do AJAX though. So one solution would be to setup a php script somewhere that you can use for getting links from gmail.

EDIT: There is an implementation of cURL in javascript here. Check it out.

like image 138
Prasanth Avatar answered Oct 03 '22 23:10

Prasanth