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

It's not working with https #1

Open
sheetaldeshpande opened this issue Sep 26, 2013 · 2 comments
Open

It's not working with https #1

sheetaldeshpande opened this issue Sep 26, 2013 · 2 comments

Comments

@sheetaldeshpande
Copy link

  1. Setup cottonballs
  2. Updated host file ccording to documentation i.e. 127.0.0.1 android.googleapis.com
  3. Using postman POST: https://android.googleapis.com/gcm/send

{
"registration_ids" : ["APA91bHpPg5OHGQswCT3FMv4MkdEbm2J2WEzuf69HlMljPvi_7htN3dlaZXCYReGGwDvtnoxw_TsaX0mY63x_htxdFrPvlWbnxUhIEKtbARAjCrbSXueIk6W66dw6zUBvEaSufZf4hSa_XQu5WpfzzYYmKy8OPFZyA", "ssghgshgsshg"],
"data" : {
"message":"Hello World from Watson!!"
}
}

We get response status 0.

@mrugenmike
Copy link

Yes I am facing same issue, and I am using the GCM client library as provided by google, which basically tries to make a HTTPS call to the endpoint https://android.googleapis.com/gcm/send to basically send a Multicast request.
The cottonballs responds on the same call but with HTTP protocol, it is really not understood what happens, as response is expected from the HTTPS binding and not HTTP binding.
Changing the GCMS library is not possible as it doesn't allow to send request to another URLs or using another protocols.

@jondot
Copy link
Owner

jondot commented Oct 9, 2013

Hi, since cottonballs was built for performance testing, HTTPS/SSL was secondary - however there is support for it. did you follow the instructions regarding setting up SSL in the README?

techgaun pushed a commit to techgaun/cottonballs that referenced this issue Feb 28, 2015
Stopped using deprecated bodyParser ctor
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