cloud-functions-emulator icon indicating copy to clipboard operation
cloud-functions-emulator copied to clipboard

How to invoke HTTP function with method GET and go with querystring?

Open paulhsu201605 opened this issue 8 years ago • 1 comments

Hi,

How to invoke HTTP function with method GET and go with querystring?

Thank you

paulhsu201605 avatar Nov 03 '17 02:11 paulhsu201605

I'm not sure I understand, can you please clarify your question?

For example, if you curl your function's endpoint, GET is the default method, and you can just add the querystring to the end of the url, e.g.:

curl https://us-central1-your-project.cloudfunctions.net/helloWorld?foo=bar

or

curl http://localhost:8010/your-project/us-central1/helloWorld?foo=bar

jmdobry avatar Nov 13 '17 21:11 jmdobry