HyperText Transfer Protocol (HTTP) is an application level network protocol used for the transfer of content on the World Wide Web.
0
votes
0answers
33 views
Generate random URL and download HTML from website [on hold]
I'm very new to Python and I wrote the following program as my first program. My code works as intended but it's really really slow and sometimes it gets stuck for multiple minutes. I don't really ...
6
votes
0answers
44 views
Downloading HTML from random websites
I've never written a single line of Python before this program was made and all my "knowledge" of the syntax is from Enki ( an app ).
I just wanted to download the HTML code from random websites and ...
4
votes
0answers
29 views
reusing Body in http.Requests (goproxy)
Goproxy is a Go package implementing an HTTP proxy.
I am using it to store requests from a client (eg: a web browser) for further processing.
In an ...
2
votes
1answer
36 views
Threaded and asyncio API library
In Python I am trying to create an API for a connected device. I want to be available for both threaded (using request) and async applications (using aiohttp).
What I've come up with is wrapping the ...
3
votes
2answers
73 views
Filter request code handler
I use the following code which works OK, the code is filtering requests and in case there are too many requests it sends some logs/errors
since I'm very new to Java my question if there is a better ...
2
votes
0answers
55 views
Download a PDF and submit it as a print job
I have following Java code, which is to print PDF, but in a busy location this code is taking about 20 to 30 second delay before submitting to the hardware.
get the PDF file via the network
download ...
3
votes
0answers
32 views
CLI app to download a .gitignore file
I have written a simple app that adds gitignore files to the current working directory - it does this by reading files hosted on GitHub and then saving them (...
4
votes
1answer
44 views
Simple file server for GET requests
I recently made this simple server in C for Linux systems and was wanting to get another set of eyes on it for a review of the design. I am new to socket programming and used a textbook from school to ...
2
votes
1answer
30 views
Initial attempt at node.js automatic redirection
I'm working on a Node.js HTTP server on my iPhone:
...
2
votes
1answer
86 views
The Telegram bot for book information
Telegram Bot that retrieves book information from GoodReads
I've created a Telegram bot that implements the inline/offline modes to get the brief info about a book, searched by title(inline mode) or ...
4
votes
2answers
120 views
Telegram Bot that retrieves book information from GoodReads
The project below is about a Telegram bot that implements both inline and offline modes. The idea is to get a brief info about a book, searched by title(it's author, rating, short description). I ...
3
votes
1answer
76 views
Cookie wrapper made for fun
This was mostly made for fun, so I don't see it having any real world purpose any time soon.
...
0
votes
1answer
86 views
HttpRequest class using AsyncTask for Android application
I am using the following class to retrieve a http response, which contains data for my Android App. Everything works fine, but there is a performance issue. I get the following warning when requesting ...
3
votes
1answer
46 views
Managing Httpcache from C# using JSON configuration
I have written an efficient way to control data to be cached/not-cached in HttpCache using JSON and C# controlling it.
The reason for this implementation is to make use of existing application ...
-1
votes
1answer
45 views
Download Images as fast as possible (task-based update) [closed]
Based on the excellent advice of some users here, I updated my code to do a task based implementation of my previously thread based implementation. This didn't work out of the gate, but I think it has ...
3
votes
2answers
136 views
“Two way” HTTP Client
In one of my applications I make requests to a server. However, that server may at some point start making requests to my application as well. The server also allows polling, this means that I am able ...
5
votes
1answer
809 views
Download Images as fast as possible
I have a spreed sheet and its something like 550+ columns and I need to pull URLs from it. Previously I was using LinqToExcel when the sheet was less than 255 columns a recent update has produced this ...
2
votes
0answers
92 views
Multithreaded download of images from a spreadsheet
I've been wanting to go async with my HTTP calls but all the methods I tried have not worked, so I resolved to implement this as a task and then improve upon it.
This is what I've come up with so far....
4
votes
3answers
352 views
Generic WebRequest Method
I created this method to do all my WebRequests.
Generally my question is if it can be improved in any way.
As a side question, would it be better to create requests for each type (PUT, POST, GET, ...
0
votes
0answers
27 views
WebClient extension to behave as web browser
I would like to have a WebClient object that behaves the most closely as possible to a web browser session. It seems the first thing is preserving cookies, and I found examples of how doing that. I ...
6
votes
2answers
98 views
Authenticating web request to get the xml data from it
I wrote a method early of our development last year about getting the content of a webrequest where it contains an xml data that we need to process and insert to ...
6
votes
2answers
265 views
Internet Speed Calculator
This program calculates up and downspeed of a given connection for as long as it is running.
...
0
votes
0answers
88 views
Releasing references with server connection library
I work on a custom library (Co.line) to do HTTP requests in REST. I tried to think of reducing the memory usage by cancelling the thread background and destroying all references. It uses a ...
7
votes
2answers
337 views
Get host ip address behind load balancer or without lb
Description
Aplication type: WEB API
.NET Framework: 4.5
MVC: 5
I need caller host ip in my custom action filter and then in action. On some enviroments we have configured load balancer which ...
5
votes
1answer
147 views
File downloader using Java, multithreading and HTTP Range request
I'm making a file downloader using Java. The project is on GitHub; I have included the most relevant excerpts here.
I separate the file into parts and download them using HTTP Range request, with ...
6
votes
2answers
95 views
Crawl site getting URL and status code
I wrote a crawler that for every page visited collects the status code.
Below my solution. Is this code optimizable?
...
5
votes
1answer
167 views
Session handling using Python Requests client
I'm using this code to login to an experiment login system created by me for this purpose.
...
0
votes
0answers
31 views
ResponseEntity<Error> bad design
We have implemented this pojo to use in the org.springframework.http.ResponseEntity.
...
2
votes
0answers
104 views
Request Queue for League of Legends API
I am working on some website for League of Legends statistics, which uses the RiotGames API.
The API allows you to do a maximum amount of requests per 10 seconds, and another maximum amount of ...
5
votes
1answer
58 views
Brightness Web Server
This is the first real program I've written in Go so have at it! I wrote it because I use a tiling window manager that doesn't have any brightness control functionality (at least not that I know of).
...
3
votes
1answer
61 views
Cookie, Session, and Flash middleware for Iron framework
Iron's cookie and session middleware projects seem to be abandoned. I've put together implementations for them, along with a ...
3
votes
1answer
89 views
2
votes
1answer
80 views
Android network API request
I often use a similar scheme work with an API project. Can it be made easier, or is there a standard approach?
This class creates an API request:
...
3
votes
0answers
36 views
xkcd comics data provider
Please help me improving this code(golang), thanks!
Why I need built a API for xkcd
Can't get the data provided by xkcd directly in front-end(CORS).
So we can package the data to 10 comics per ...
2
votes
0answers
76 views
Low performance of HTTP request using Haskell wreq
The program makes HTTP requests (checks video stream status) and calls an external program.
...
6
votes
1answer
40 views
Script to download sequentially named files, rename them, and delete smaller files
I've written a little script to download sequentially named files, rename them, and delete files smaller than an certain number of kilobytes. I came up with this but I'm not too happy. Any advice for ...
0
votes
2answers
78 views
C++ Socket Part-4
In my ongoing attempts to become a better blog writer I have some written some more code that needs reviewing.
Full Source: https://github.com/Loki-Astari/Examples/tree/master/Version4
First Article: ...
5
votes
2answers
90 views
C++ Socket Part-3
In my ongoing attempts to become a better blog writer I have some written some more code that needs reviewing.
Full Source: https://github.com/Loki-Astari/Examples/tree/master/Version3
First Article: ...
6
votes
4answers
64 views
Two HTTP notification methods
I have two very similar methods, which make HTTP requests, the difference is that one makes PUT and another GET. Is there any proper Ruby way not to repeat the setup code and not to pass the flag ...
10
votes
1answer
499 views
Efficiently using Apache HttpClient in multithreaded environment
I have a library which is being used by customers and they are passing DataRequest object which has userid, various ...
3
votes
0answers
93 views
Serving images from a Raspberry Pi camera over HTTP
I have a Pi with a camera module that I control with python.
I created a web server with web.py that allows me to make HTTP requests to the PI to retrieve an image. There are two optional parameters ...
3
votes
1answer
151 views
Getting JSON data from an HTTP response using conditional binding
I am new to Swift and I am trying to use the optional binding feature in as efficient way as possible but I am a bit confused on how to use it (if I can) in this scenario:
...
3
votes
1answer
161 views
AsyncTask method
Even I know that this isn't a good way of writing code, but I need to improve this.
Here I am retrieving data from Server in Json format by Posting some variables in doInbackground. Getting all the ...
3
votes
0answers
145 views
Golang Tour Web Crawler Exercise
In the last few days I've played around with Go a little and took the language tour. The last exercise (text here) requires you to crawl a graph that simulates a set of Web pages with links, using ...
2
votes
0answers
58 views
Fetching a weather report on an Arduino from a web service
I'm writing some code which is basically supposed to http get some information from my own website and parse it, which (finally) works. However, when I compile the code, it shows this:
Sketch uses ...
2
votes
0answers
31 views
Node.JS HTTP shortcut wrapper
The Node.JS HTTP and HTTPS modules only provide .get shortcut function, unlike AngularJS's $http which provides them all. I went ...
3
votes
1answer
117 views
NodeJS static file HTTP server
I wrote a NodeJS HTTP server specifically for serving static files. I didn't bother much about security since the server is going to be used locally in my Electron application.
...
1
vote
0answers
55 views
Posting HTTP session data on a website
This reads lines from a file, create HTTP sessions and post data on a website. The code is slow, so please suggest how I can improve the performance.
...
7
votes
0answers
411 views
Node.js parallel file download, the ES6 way
I wrote a script that downloads all PDFs found on the web page of a particular government agency. I would have chosen bash for such a task, but I want the script to ...
1
vote
2answers
112 views
Asynchronous lookup over HTTP and checking the status
For some reason declaring ApiResult before checking if the answer is in a correct status doesn't look good. I wonder if there is any better way to check the status ...