Questions tagged [http]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
3k views

Angular 2 / rxjs chaining HTTP calls

I have a registration form. Step 1 user creates an account. As user creates an account I need to authenticate user with the created account. in my account.service.ts I have following. Is this the ...
3
votes
1answer
162 views

Set time zone from cookie

Is the set_cookie variable the correct way to signal that the cookie should be set? It does not seems pythonic to me: ...
2
votes
3answers
170 views

HTTP redirects after login, registration, and logout

I am using following classes/interface to redirect user (after login, register, logout etc.) File: RedirectInterface.php ...
3
votes
1answer
983 views

Resumable download with System.net.HTTPClient

This is a Delphi class, based on System.net.HTTPClient with a function for downloading a file from a URL and saving on a filename destination: ...
6
votes
1answer
145 views

Tokenizing texts from Gutenberg archive for analysis

I am writing a program to analyze books from the Gutenberg archive. The program takes the title and URL and finds the text and downloads it. Then it goes through the text and tokenizes it. Here is the ...
5
votes
1answer
5k views

Making multiple http request Angular2

I need to get some ids from contacts and contactgroups to be able to collect the data. My example works but i dont know if this is the way to go. ...
1
vote
1answer
9k views

Http Request response time within C# application

I have this method : ...
1
vote
1answer
113 views

Composing best web page fetcher function by HttpClientHandler for C#

The returned class as result: ...
3
votes
1answer
109 views

Link checker using Go channels

I've started to learn Golang and channels in it. I decided to write simple application - recursive link checker. Given some URL it tries to retrieve pages, parses them and goes deeper. Here's a code ...
6
votes
1answer
1k views

Simple Rust Webserver

I started learning Rust today and for my first project created a simple webserver. I don't have a clear vision about Rust programming and I tried to write it with my previous knowledge in Python and ...
2
votes
0answers
101 views

Making HttpWebRequest and not really interested in the response

I am working on top of existing application and I have this (original) method for making a HttpWebRequest: ...
8
votes
2answers
9k views

Parsing HTTP Headers in C++

I am building a web server from scratch and trying to make certain tasks faster by embedding C code into the mix for performance. Specifically I'm worried about how the ...
3
votes
2answers
74 views

Static web server with a bit of error handling

I am looking for a review on this code, which is a simple static web server, with a small bit of error handling. It's feeling a bit "messy" / "imperative" at the moment, so advice would be welcome. <...
7
votes
1answer
6k views

Elegantly handle github API requests exceptions

I have this code which creates a team using the github API and returns the team-id(success) or -1(failure). My problem is with the error handling. When the request responses with an error status code ...
2
votes
0answers
820 views

Convert a curl command into Ruby

I had a curl command which I converted using this. This is the Ruby script: ...
2
votes
1answer
842 views

Download pictures from Reddit

...
4
votes
0answers
1k views

Gracefully shutting down a HttpListener

I have worked out a code for graceful shutdown of a httplistener. However, I am not sure if its foolproof. Below I provide c# code and the powershell (v3.0) scripts I've used to run my tests... C# ...
2
votes
1answer
3k views

RESTful HTTP Post with falcon

I wrote a small aggregator app that aggregates values from a json http post request and outputs the aggregated values. Now the aggregator function is somewhat large but the output appears correct. I ...
3
votes
1answer
89 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
1k 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 ...
6
votes
1answer
3k 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 ...
5
votes
1answer
189 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
101 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 ...
6
votes
0answers
1k views

Improving the Flask cache decorator

In my rumblings developing flask applications I found the caching decorator. The decorator is a short and well-written piece of code, but I feel like it misses the few points bellow: It only caches ...
3
votes
2answers
110 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
2k 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 ...
2
votes
0answers
55 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
753 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 ...
3
votes
1answer
36 views

Initial attempt at node.js automatic redirection

I'm working on a Node.js HTTP server on my iPhone: ...
2
votes
1answer
646 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
613 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 ...
2
votes
1answer
182 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. ...
1
vote
1answer
518 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
275 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 ...
3
votes
2answers
1k 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
955 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
123 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
2k views

Generic WebRequest Method for .PCL

I have created this method to do all my WebRequests. Generally my question is, if this could be improved in any way. As a side question, I would like to know if it be better to create methods for ...
6
votes
2answers
483 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
4k views

Internet Speed Calculator

This program calculates up and downspeed of a given connection for as long as it is running. ...
7
votes
2answers
9k 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 ...
6
votes
1answer
3k 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
959 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
5k 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. ...
2
votes
0answers
241 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 ...
3
votes
1answer
69 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). ...
4
votes
1answer
190 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
2k views

Check if the website is up

api.js ...
2
votes
1answer
170 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: ...
4
votes
1answer
172 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 ...