Questions tagged [curl]

cURL is a library and command-line tool for transferring data using several protocols such as HTTP, FTP and Telnet.

Filter by
Sorted by
Tagged with
10
votes
1answer
401 views

HTTP Stream Part 2 A stream that opens an HTTP GET and then acts like a normal C++ istream

The review I asked for yesterday was for a header only library. Stream that opens an HTTP GET and then acts like a normal C++ istream This has some limitations as it downloads all the data as part of ...
13
votes
1answer
2k views

Stream that opens an HTTP GET and then acts like a normal C++ istream

Needed a quick stream to get JSON objects. ...
2
votes
1answer
99 views

Downloading the oldest available version of some data files

I am using the cURL tool in MATLAB 2013b with Ubuntu to download a whole bunch of files. The files have one of three possible versions: 1.0.0, 2.0.0, or 2.1.0. Using the HTTP, I first check the ...
2
votes
1answer
359 views

Bash script to monitor Webserver php script

Below is a script I wrote today to use CURL to monitor the length of various HTTP server outputs and output a response if this is different than 103 characters. This is my first bash script, so I had ...
2
votes
3answers
1k views

Service status checker… Is there a more efficient way?

I've been working on a website status checker.. However this array that I use has around 30 sites within it, I've noticed it's taking around 6-7 seconds to load it. I was wondering if there's any ...
5
votes
1answer
3k views

Secure CURL to & handle response from Payment Gateway

I'm using a payment gateway and am trying to implement the post and response handling with CURL so that it all happens on one page. The following is tested and works but I want to double check it's ...
1
vote
3answers
9k views

Calling restful web services efficiently

I need to use this code to fetch data from web service and show them in a site properly but after I request for the webservice I am unable to load them fast. Site is loading very slow. ...
3
votes
1answer
705 views

Optimizing PHP script fetching entire HTML pages

The following script should get links which are stored in a text file (line by line), then put them into an array and finally scan each links' source code for a certain line. If this line is found, it ...
3
votes
1answer
4k views

DownloadFile Function (using LibCurl)

Please tell me if this function is correct (I believe it to be), efficient, and clean. Function to check: ...
5
votes
2answers
8k views

Better multithreading with network IO and database queries

I'm writing a script that: fetch a list of urls from a db (about 10000 urls) download all the pages and insert them into the db parse the code if(some condition) do other inserts into the db I have ...
2
votes
1answer
597 views

Getting a remote file to local storage

I've prepared a function using cURL to get a remote file to the local storage: ...
3
votes
1answer
4k views

Tiny Curl C++ wrapper

I have written this sample code to fetch a web page in C++ using libcurl. Please review it. ...
4
votes
1answer
342 views

Dynamic IP-address logging

Inspired by Don Stewart's article on Scripting with Haskell I tried a rewrite of a shell-script I did the other day. I was really astonished how easily it worked but as a whole it is about double the ...
13
votes
2answers
7k views

Handling many networking exceptions in Ruby

What would be a prettier/faster way to do handling of multiple errors in Ruby? Here is the code I am working with: ...