Giter VIP home page Giter VIP logo

Comments (6)

inconshreveable avatar inconshreveable commented on July 1, 2024

I can't duplicate this with a simple POST from curl. This suggests the bug is more subtle, can you provide a more specific reproducible case?

from ngrok.

chadselph avatar chadselph commented on July 1, 2024

I'm not doing anything crazy... here is the dump of my request...

POST / HTTP/1.0
Host: 2f89f123.ngrok.com
Accept: */*
Accept-Encoding: gzip, deflate, compress
Connection: close
Content-Type: application/x-www-form-urlencoded; charset=utf-8
User-Agent: HTTPie/0.6.0
X-Real-Ip: [redacted]
X-Scheme: http

p=1&q=2

and when I hit the replay button here is the new request that gets genrated:

POST / HTTP/1.0
Host: 2f89f123.ngrok.com
Accept: */*
Accept-Encoding: gzip, deflate, compress
Connection: close
Content-Type: application/x-www-form-urlencoded; charset=utf-8
User-Agent: HTTPie/0.6.0
X-Real-Ip: [redacted]
X-Scheme: http

I'm on the client 0.22. Doesn't seem to matter what the server's response is.

from ngrok.

inconshreveable avatar inconshreveable commented on July 1, 2024

I'm betting this is an HTTP/1.0 issue, will be investigating further.

from ngrok.

inconshreveable avatar inconshreveable commented on July 1, 2024

Confirmed, I can reproduce this with the following:

curl -vvv --http1.0 -d "foo=bar" tunnel.ngrok.com

What's more is that the request dump that ngrok displays doesn't have a Content-Length header when the curl output clearly shows that one is sent.

And yet the Headers section shows the Content-Length header . . .

from ngrok.

ewdurbin avatar ewdurbin commented on July 1, 2024

just hit this bug running webhooks from statuspage.io through ngrok.

original:

POST /statuspage/alert HTTP/1.0
Host: [redacted].ngrok.com
Connection: close
Content-Type: application/json
User-Agent: statuspage.io/webhooks/[redacted]
X-Newrelic-Id: VgYEUF9XGwIIXFZSAgM=
X-Newrelic-Transaction: PxQDUFQHC1ZSAFIDBwcHBQYJFB8EBw8RVT8=
X-Real-Ip: 54.218.13.220
X-Scheme: http
X-Y-U-So-Awesome: Want to come hack on statuspage.io? Send a base64 encoded message to [email protected].

{"meta":{"unsubscribe":"http://status.[redacted].com/?unsubscribe=[redacted]","documentation":"http://doers.statuspage.io/customer-notifications/webhooks/"},"page":{"id":"[redacted]","status_indicator":"minor","status_description":"Partially Degraded Service"},"component_update":{"created_at":"2013-09-05T19:06:50Z","new_status":"degraded_performance","old_status":"operational","id":"[redacted]","component_id":"[redacted]"}}

replayed:

POST /statuspage/alert HTTP/1.0
Host: [redacted].ngrok.com
Connection: close
Content-Type: application/json
User-Agent: statuspage.io/webhooks/[redacted]
X-Newrelic-Id: VgYEUF9XGwIIXFZSAgM=
X-Newrelic-Transaction: PxRSWVVRAFEGAVZaAAYDA1QAFB8EBw8RVT8=
X-Real-Ip: 54.218.13.220
X-Scheme: http
X-Y-U-So-Awesome: Want to come hack on statuspage.io? Send a base64 encoded message to [email protected].

from ngrok.

inconshreveable avatar inconshreveable commented on July 1, 2024

Fixed in version 0.23.

There is still an issue where the replayed requests are not exactly the same as the original request, but the differences are minor. See issue #27

from ngrok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.