HyperText Transfer Protocol (HTTP) is an application level network protocol used for the transfer of content on the World Wide Web.

learn more… | top users | synonyms

4
votes
0answers
57 views

Multi-threaded code to handle messages from a provider

Having a look at my code, is there a way to be losing elements? ...
8
votes
1answer
749 views

Scraping GitHub for security vulnerabilities

I haven't done much Python programming, but I really like the language so I've been using it for side projects that I work on. The problem with this is that I don't have the opportunity to have my ...
5
votes
1answer
149 views

HTTP downloader using Beast

I have written a small HTTP downloader using boost::asio Beast library (proposed to be included in Boost) network::uri library ...
6
votes
0answers
50 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
42 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
41 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
77 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
38 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
50 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
31 views

Initial attempt at node.js automatic redirection

I'm working on a Node.js HTTP server on my iPhone: ...
2
votes
1answer
129 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
157 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
80 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
107 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
50 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
47 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
162 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
819 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
94 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
430 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
34 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
113 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
314 views

Internet Speed Calculator

This program calculates up and downspeed of a given connection for as long as it is running. ...
0
votes
0answers
94 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
589 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
179 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
108 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
200 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
39 views

ResponseEntity<Error> bad design

We have implemented this pojo to use in the org.springframework.http.ResponseEntity. ...
2
votes
0answers
123 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
64 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
69 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
106 views
2
votes
1answer
96 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
92 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
42 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
88 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
94 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: ...
3
votes
1answer
73 views

Simple HTTP server that performs a regex test

I'm sure that my server can work with better performance, but it's just a dream. Parsing a very long strings is not so obvious task for me. I have a server that handles a lot of clients requests and ...
6
votes
4answers
65 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
631 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
118 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
160 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
171 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
181 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
70 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
34 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
146 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. ...