Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not forward POST requests #64

Closed
kuitang opened this issue Dec 8, 2012 · 2 comments
Closed

Does not forward POST requests #64

kuitang opened this issue Dec 8, 2012 · 2 comments

Comments

@kuitang
Copy link

kuitang commented Dec 8, 2012

I am trying to use localtunnel for Twilio. It appears that POST requests are not forwarded, which is strange.

I am using localtunnel 0.3 (the version from gem install) with Ruby 1.9.3-p194.

My backend (in R) contains

...
if (!req$post()) {
str = 'Nothing posted!'
} else {
str = paste('', req$POST()$From, ' said: ',
req$POST()$Body, ' ')
}
...

POSTing from localhost works:

$ curl -d From=Me -d Body=Herpderp http://localhost:21902/custom/echo_twilio

Me said: Herpderp

Using localtunnel doesn't:
$ curl -d From=Me -d Body=Herpderp http://582u.localtunnel.com/custom/echo_twilio

Nothing posted!
@progrium
Copy link
Owner

Seems very odd. Can you try localtunnel v2 beta and see if you get the same problem?

@tysonmote
Copy link

The latest beta forwards POST requests fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants