0

I have set a google-cloud cron job like this:

<?xml version="1.0" encoding="UTF-8"?>
<cronentries>
    <cron>
        <url>/match</url>
        <description>bla bla</description>
        <schedule>every 2 minutes</schedule>
    </cron>
</cronentries>

but i see in the google cloud console it sends a "get"

how can i change it to "post" ?

1
  • if you explain the goal for which you need a POST you may get suggestions for achieving that goal Jul 25, 2016 at 14:32

1 Answer 1

1

You can't. From Scheduling Tasks With Cron for Java (emphasis mine):

A cron job invokes a URL, using an HTTP GET request, at a given time of day. An cron job request is subject to the same limits as those for push task queues.

If you really, really need a POST you can trigger one from inside your cron job itself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.