Skip to main content

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
5 votes
2 answers
148 views

Verse is a command-line program that allows you to retrieve specific verses from the Quran. It takes a chapter and verse number as input and provides you with the corresponding Quranic verse. ...
Madagascar's user avatar
  • 10.1k
6 votes
1 answer
126 views

I created a SDK in C for my Rust project (a key value store in Rust). It should give access to the HTTP routes in a simple manner. (I never worked with C outside of university.) I used: ...
Auyer's user avatar
  • 163
6 votes
3 answers
244 views

As a project to get more familiar with curl, I decided to write a program that downloads stock data from Yahoo Finance, and does arbitrary analysis on that data. I would like to receive any critiques ...
Ben A's user avatar
  • 10.8k
2 votes
1 answer
147 views

I wrote a script that uses an uploaded excel file to import data to the database. It checks for the image first if it can be downloaded without any error then insert the rest of the data. With ten or ...
Benjji's user avatar
  • 21
2 votes
1 answer
2k views

As the REST API SDK for PHP V2 is deprecated, I wrote a simple PHP class to make a payment with PayPal through cURL and verifying it. Note : I didn't add shipment details for payment because didn't ...
Kranchi's user avatar
  • 129
6 votes
2 answers
944 views

So we have many vlans at work, often it is nice to see which ip ranges are associated with said vlan. We have a well developed api for displaying information about our network and thus I wrote a small ...
N3buchadnezzar's user avatar
3 votes
1 answer
1k views

Our team often has indeterminate access issues to our Aritfactory binaries. These issues can go missed because we may have our binaries locally cached and our projects builds may still succeed until ...
Hofbr's user avatar
  • 371
4 votes
1 answer
179 views

This is a script I created that downloads Project Euler webpages and combines them to PDF. The script also downloads animated files. ...
qwr's user avatar
  • 1,233
1 vote
1 answer
85 views

I have written an application for lawyers' offices. There is an API to fetch info about court cases. I have implemented API calls for front end when user enters particular case; one tab is filled with ...
ikiK's user avatar
  • 111
2 votes
1 answer
2k views

Here's an example script I wrote for Instagram (Facebook)'s Basic Display API. I did this for myself because I haven't used Instagram's API since their Legacy API was disabled, and I needed to ...
tony's user avatar
  • 433
0 votes
1 answer
142 views

So I created a wrapper class to authenticate user via POST HTTP request. ...
Anurat Chapanond's user avatar
4 votes
1 answer
278 views

I am working on a small internal app that works along an external API for provisioning purpose. The code essentially is comprised of a series of forms where the user inputs data, this data is then ...
Berny's user avatar
  • 43
5 votes
1 answer
128 views

I saw this entertaining talk by: Bob Martin on clean code and started refactoring a relatively simple class today. I am, by no means, an expert on coding and still learning a lot every day, so I want ...
Stormnorm's user avatar
2 votes
1 answer
510 views

I use zypper to download and install for openSUSE Tumbleweed (much like everyone else of course). Unfortunately it downloads packages serially, and having about a thousand packages to update a week, ...
André Werlang's user avatar
4 votes
1 answer
252 views

This actually works nicely (we have > 2k repos) but I would really like it to start producing results right away as soon as it has any. Mostly so it seems faster than it is (by being more responsive). ...
Christian Bongiorno's user avatar
5 votes
1 answer
307 views

I just wrote this script to check if the name (that has 2 characters: 1 alphabet and 1 number) in Github is available or not so I can accompany this name. Here is my script: ...
Chau Giang's user avatar
0 votes
1 answer
66 views

I have a curl based working bash script, but I have many duplicates on the "CURL" body. How do I improve it efficiently to eliminate duplications? ...
manuelBetancurt's user avatar
4 votes
2 answers
260 views

This code uploads an entire directory and allows for its reparenting on a remote server (an artifact repository). Three concerns: Copying the files locally takes a lot of space. Ideally, I could use <...
Christian Bongiorno's user avatar
2 votes
1 answer
4k views

I'm under no illusion that this is at all the best way or even a good way of doing this. It's simply a working solution. Tips, opinions, suggestions, insults, death threats, let's hear it. ...
Brian Bruman's user avatar
5 votes
1 answer
231 views

I'd like to optimize my code and get a better understanding of how I can perform the task I am doing better. I've only used Perl threads about 3 or 4 times now. The purpose of my code block is to ...
falconspy's user avatar
  • 151
1 vote
1 answer
216 views

Below is code i used to call Api and display the "Status" results in web page. my senior told me that code is completely mess and need to improve so that it should be easy to understand for others. ...
vickey colors's user avatar
4 votes
1 answer
2k views

I have written a voting class in Laravel. It uses the voting sites API to check if the user has voted today. A user is only allowed to vote once every day. All votes reset at midnight (i.e. 12:00 AM ...
begoing's user avatar
  • 49
3 votes
1 answer
1k views

I have a table in MySQL with approx. 20 million rows and the following columns: id | word_eng | word_indic I have to translate the English word (the value in ...
Naveed's user avatar
  • 131
0 votes
1 answer
357 views

I have a PHP cronjob script. I need to send requests and get responses from some external API. So, there is code for the API class. In this class, I connect to the API and call public methods of ...
Zhi V's user avatar
  • 151
2 votes
2 answers
665 views

I've put together a class that grabs data from imdb.com or allmusic.com, then inserts the data into a database, copy's the poster, also updates the data if ...
Benwhittaker25's user avatar
7 votes
3 answers
2k views

I made a tiny little bash script, that prints the current IP Address to the command line. I checked the script with ShellCheck (0.4.6-1) on a local debian install and I get the following message: ...
nath's user avatar
  • 321
6 votes
1 answer
259 views

This code review request relates to this code review which covers the basic single REST call use case in this REST client library. This code review covers the classes and unit tests for the multiple ...
Mike Brant's user avatar
  • 9,878
6 votes
1 answer
221 views

This is a second iteration on an earlier review - cURL based REST client library I have done some refactoring to split out the REST HTTP response into it's own class from what was in the previous ...
Mike Brant's user avatar
  • 9,878
3 votes
2 answers
835 views

I have recently refactored a REST client library and was hoping to get review for both the class itself and the unit tests that cover it. This code is developed against PHP 7.1, but tested against ...
Mike Brant's user avatar
  • 9,878
3 votes
0 answers
1k views

I had a curl command which I converted using this. This is the Ruby script: ...
tessie's user avatar
  • 315
3 votes
0 answers
672 views

We are using a message broker called rabbitmq. The code checks the status of number of messages in q queue and sent messages. This is achieved by a curl request to a given API.The script has a sleep ...
tessie's user avatar
  • 315
1 vote
1 answer
772 views

The following is a class for curl wrapper. This class will be called like: ...
Kid's user avatar
  • 51
4 votes
2 answers
6k views

I did this library to help me from one of my projects and decided to publish it on GitHub hoping people might find it useful, convenient and easy to use in their projects too. It's a header-only ...
mr5's user avatar
  • 243
3 votes
1 answer
4k views

I've written this class that downloads an images, the URLs for which are read from a local .txt file. I'm keen to make sure my code is safe and efficient. ...
Babra Cunningham's user avatar
4 votes
1 answer
1k views

I am trying to write a simple reusable pool of curl handles. I found this wonderful implementation of the blocking queue. The pool itself looks like this: ...
vasily's user avatar
  • 143
2 votes
1 answer
2k views

I'm implementing the Hotel Price List API from Skyscanner. This requires a first call to the service to implement a session followed by 1 or more calls to the service to get the actual results. I've ...
DiscoFever's user avatar
1 vote
2 answers
892 views

This question is a continuation of: Sending email using libcurl - follow-up Does this code have any problems? Can I improve it? ...
Ufx's user avatar
  • 217
0 votes
2 answers
589 views

I enter in the IMDb link and YouTube trailer link in the command line to a movie and the first main program loads all the info about the movie. The second main program uses an IMDb link to the movie ...
user3736114's user avatar
3 votes
1 answer
2k views

This question is continuation of: Sending email using libcurl I developed a class to send email. Does this code have any problems? Is it thread-safe? ...
Ufx's user avatar
  • 217
3 votes
2 answers
8k views

I developed a function to send email based on this. Does this code have problems? Also, I'm not sure if this code is thread-safe because of the global payloadText ...
Ufx's user avatar
  • 217
1 vote
1 answer
96 views

I'm building a web app that pulls data from a ticketing system via REST API. I'm currently able to pull all of the data I need just fine but the loading process is really slow. I'd love any feedback ...
James Rivera's user avatar
3 votes
1 answer
117 views

The code uses the XML-based OC Transpo data feed to create a list of the bus name, where it's headed, and the times. Keep in mind that I am a beginner at python so any advice at all is appreciated. <...
y_arl's user avatar
  • 131
1 vote
1 answer
2k views

I am using the following code to retrieve the URL of a random image in a remote folder that I own. As a newbie and although this is working I would like to know if this is done properly, if it could ...
user3477054's user avatar
1 vote
2 answers
228 views

I am trying to write industry standard code. https://www.quora.com/How-do-I-follow-a-user-on-Spoj-for-solving-problems-Refer-Details Someone gave me this A2A. And I wrote this code for it ...
Dhruv Sehgal's user avatar
4 votes
2 answers
997 views

I'm currently building a node.js addon for libcurl. Right now I'm trying to correctly use v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory to ...
jonathancardoso's user avatar
2 votes
0 answers
53 views

I wrote code which is doing query and insert inside while loop. ...
saurav's user avatar
  • 131
5 votes
1 answer
3k views

Here's the code ...
bigOmega  ツ's user avatar
5 votes
0 answers
1k views

In a C project I want to reuse curl easy handles. The flow of program is like: Client --> C Application --> Call URL1, do something, Call URL2, do something, Call URL3... In short, for each client ...
user3275095's user avatar
4 votes
1 answer
2k views

I'm working on a project where I pull data (JSON) from an API. I would like to manipulate this data and store this as useful information in my DB (MySQL). My code is working if I would like to make, ...
PHPhil's user avatar
  • 141
1 vote
1 answer
140 views

I have this PHP curl function to check if a site is online or not: ...
Roberto's user avatar
  • 19