cURL is a library and command-line tool for transferring data using several protocols such as HTTP, FTP and Telnet.
1
vote
0answers
21 views
DMZ passthru script
I have a server that cannot be connected to from the internet, but I need to get some info to it. I have another server that can, so I have a simple passthru script that I want to see if you all think ...
6
votes
2answers
234 views
Pinging a URL with libcurl
I've asked a question about pinging a URL before, but I wanted something that was a bit shorter and still just as efficient. libcurl seemed to be the perfect answer. Here is my method:
...
10
votes
3answers
107 views
Dynamic library to intercept oddsock hostname lookups
Just for the fun of it, I decided I would try to create sort of an intermediate DNS system for the oddsock SOCKS proxy. With this, the domain name extension .unet is statically resolved when ...
5
votes
1answer
59 views
Reverse-engineering with Filepicker API
I have this script to pull data out of the Filepicker API internal. It's mostly reverse-engineering and the code seems to be ugly to me. How can this be improved?
...
1
vote
3answers
2k 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.
...
1
vote
0answers
52 views
Optimize web-scraping of Moscow grocery website
This code works fine, but I believe it has optimization problems. Please review this.
Also, please keep in mind that it stops after each iteration of the loop ...
0
votes
1answer
69 views
How could I more optimize this code [closed]
how can I optimize this code more and more cleaned
ok.
Here is the code
...
7
votes
0answers
132 views
Bash script to clone all public repos or gists for a specified user, optionally to a directory of choice
I wrote this script as a way to backup and/or download quickly a set of repos or gists from a user. I don't have any major concerns but I'm a noob at bash scripting, and I've been scouring the ...
8
votes
1answer
160 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.
HTTP Stream A stream that opens an HTTP GET and then acts like a normal C++ istream
This has some limitations as it downloads all the ...
11
votes
1answer
261 views
Stream that opens an HTTP GET and then acts like a normal C++ istream
Needed a quick stream to get JSON objects.
...
4
votes
1answer
231 views
Wrapping Curl, an HTTP client
I have written an HTTP client wrapped the libcurl. It should be able to do HTTP get/post with string/map param, with cookies and proxy.
Can somebody review the code? B.T.W., I'm not sure the way ...
1
vote
0answers
68 views
Webhook Structuring
I am building a Webhook model so users can receive data from a messaging app.
I have never created such a system before, and I'd like to get some feedback on my attempt.
...
2
votes
1answer
121 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 ...
3
votes
1answer
208 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 ...
2
votes
3answers
215 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 ...
3
votes
2answers
606 views
Improve 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 ...
2
votes
1answer
132 views
How can this function to get a remote file improve?
I've prepared a function using cURL to get a remote file to the local storage:
...