Skip to content
#

HTTP

HTTP (Hypertext Transfer Protocol) is a request and response protocol used to send a request to a server and receive a response back in the form of a file. HTTP is the basis of data communication for the web. HTTPS is an evolution in HTTP, where the “S” stands for secure socket layer allowing communication in HTTP to be more secure.

Here are 7,075 public repositories matching this topic...

httpie
nhooey
nhooey commented Mar 6, 2020

It's not clear from the website's documentation, or the --help output, how to do the following equivalent curl task:

Post a raw JSON query to ElasticSearch:

curl \
    --header "Content-Type: application/json" \
    --request POST \
    --data '{ "_source": [ "restricted_countries.*" ], "query": { "match_all": {} }, "size": 1000 }' \
    'http://localhost:9200/_search'

T

requests
psiyan
psiyan commented Feb 28, 2020

When using the url http://docs.python-requests.org/en/latest/, it redirects to https://2.python-requests.org//en/latest/ (notice the extra / before en). This causes a HTTP 404.

Expected Result

The redirect should be to https://2.python-requests.org/en/latest/

Actual Result

HTTP 404

Reproduction Steps

Try to visit the latest en documentation for requests using the

caddy
bagbag
bagbag commented Apr 26, 2020

(Feature request out of https://caddy.community/t/use-placeholders-in-templates/7697)

I would like to see the ability of using placeholders like {http.error.status_code} in templates. This would allow us, for example, to create a single custom error page in nginx style. For now we have to create a page for every status code we would like to support (maybe using respond with include and ar

nyurik
nyurik commented Dec 16, 2019

This is more of a question, as I couldn't find it in the documentation. Does aria2 do any checks when downloading a file from multiple sources to ensure all of them are actually referencing the same file? Some basic checks might be based on comparing: 1) file size, 2) date (might not be consistent or even available), 3) first and last few bytes, 4) small chunk overlap, and compare the small ove

Prinzhorn
Prinzhorn commented Apr 17, 2020

Is your feature request related to a problem? Please describe.
The {{< highlight none >}} :~q:foo:bar {{< / highlight >}} blocks don't work on GitHub. It's confusing and makes the code examples almost useless on GitHub itself. And also in your code editor if you have Markdown syntax highlighting with embedded highlighting for nested code.

Describe the solution you'd like

It'd be ne

curl
tsenart
tsenart commented Jul 5, 2018

Documentation overhaul

Vegeta's documentation today is OK, but it can be substantially improved. This issue is meant to track ideas and needs for better documentation.

examples/ directory

All common (or not so common) recipes and examples ought to be captured in an appropriately named file in the examples/ directory, be they CLI or library related.

The README should be reduc

robooo
robooo commented Nov 14, 2018

I can't find any other explanation or formulas for results like median, average, min/max, req/sec in documentation, readme or web page. On the documentation page I tried basic scenario to search result/s and get no relevant page.

I found this question on stackoverflow, so I'm not only one who didn't understand it
https://stackoverflow.com/questions/39665250/locust-result-summary-how-to-underst

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.

  • Updated May 20, 2020
  • Go
allain
allain commented Apr 1, 2020

Describe the bug
When sanitizing the r.URL.Path by making is absolute it introduces a windows path of D:\... on the requested path, which fails.

Versions
go version 1.14
version of mux in our go.mod is listed as 1.7.4

Steps to Reproduce
Use the spa example on a windows box and fetch any file

Expected behavior
To have the file delivered

bug
rogpeppe
rogpeppe commented Nov 16, 2015

The documentation does not make it clear whether
paths of the form:

/prefix:foo

are allowed. These are currently supported by httprouter,
but don't seem quite in the spirit of its simple specification
(you can't have statically defined suffixes for a path element,
so why should you be allowed a statically defined prefix?)

This form:

/prefix*foo

is similarly not specified but i

bug
oldani
oldani commented Feb 18, 2019

If you're using proxies with requests-html and rendering JS sites is all good. Once you render a website pyppeteer don't know about this proxies and will expose your IP. This is an undesired behavior when scraping with proxies.

The idea is that whenever someone passes in proxies to the session object or any method call, make pyppeteer also use these proxies. #265

chrisjensen
chrisjensen commented Mar 29, 2020

What is the expected behavior?
If I use

nock('https://example.com/my_url', { reqheader }).log(console.log);

I would expect that a request to https://example.com would be checked against that route and that the logging would show that.

What is the actual behavior?

Nothing is logged to the console if the headers do not match the specified reqheader
This is confusing be

thornjad
thornjad commented Dec 18, 2019

A small pet peeve of mine is that the --ssl option enables TLS, not SSL. I accept that the tech world uses these related but different terms interchangeably, but I'd rather be more correct by default.

To do:

  1. Replace the existing --ssl option with --tls.
    a. Note that this enables "TLS/SSL" in the documentation so it doesn't confuse people.
    b. The short option -S could stay th
rajsite
rajsite commented Feb 11, 2020

I'm upgrading a build environment from python 2 to python 3 and noticed that endpoints with seeded random numbers are not returning the same values. It seems to be related to usage of randint:
https://github.com/postmanlabs/httpbin/blob/f8ec666b4d1b654e4ff6aedd356f510dcac09f83/httpbin/core.py#L1448

It seems like randint is not seed safe and it looks like only random() is: https://bugs.python.o

Proxy is a high performance HTTP(S) proxies, SOCKS5 proxies,WEBSOCKET, TCP, UDP proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,黑白名单,限速,限流量,限连接数,跨平台,KCP支持,认证API。

  • Updated May 23, 2020
  • Go
edlefebvre
edlefebvre commented Dec 10, 2019

Prerequisites

  • I am running the latest version. (up upgrade)
  • I searched to see if the issue already exists.
  • I inspected the verbose debug output with the -v, --verbose flag.
  • Are you an Up Pro subscriber?

Description

It would be great to add regex capabilities to redirects like so:

redirects: {
  "/folder/:slug(regexhere)": {
    "location": "https
kgriffs
kgriffs commented Jan 14, 2020

Currently, we ask contributors to strive for consistency with existing code, but it would be helpful to clarify the following regarding docstrings:

  • Docstrings should begin with a short (~70 characters or less) summary line that ends in a period.
  • The summary line should begin immediately after the opening quotes (do not add a line break before the summary line)
  • The summary line should de
adriancole
adriancole commented Aug 29, 2018

Let's support at least reading "b3" header from a single string, most commonly traceid-spanid-1
It would also be nice to support optionally writing this, especially in message providers or others with constrained environments.

Expected behavior

As discussed on openzipkin/b3-propagation#21 and first implemented here: https://github.com/openzipkin/brave/blob/master/brave/src/main/java/bra

Created by Tim Berners-Lee

Released 1989

Wikipedia
Wikipedia
You can’t perform that action at this time.