Tuesday 30 October 2018

Using exec curl to retrieve a comic or a web search

Hello, I am learning node.js, and I am writing a program and I am stuck. I need to create a proxy server that has three basic functions, retrieve a comic from dilbert.com, retrieve a websearch page from duckduckgo.com, and a private file server. I have the server set up and got the file server running, but I am supposed to use exec and call the curl function to be able to download the comic or the web search. I have no clue how exec curl works with servers, so what would be the best way to get the .gif file from the comics and the text from the webpages, onto my server using response.write() or end()? (using the http://dilbert.com for the current comic or https://ift.tt/2RnJAAq for specific date, and then https://ift.tt/2PACFac, where the specific dates and search terms are specified by the inputed url)

Submitted October 30, 2018 at 05:05PM by TGoldie44

No comments:

Post a Comment