Skip to content

Commit

Permalink
Update cloudbuild.yaml
Browse files Browse the repository at this point in the history
Requests to POST to www.example.com are returning `405 Method Not Allowed` since 09/12/24. Found another dummy url that accepts both GET and POST requests
  • Loading branch information
ronanww authored Sep 13, 2024
1 parent 02d5a9b commit 246a271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wget/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ steps:

# GET data from a server, specifying an Authorization header.
- name: 'gcr.io/$PROJECT_ID/wget'
args: ['-Ofile.out', '--header', 'Authorization: Bearer foobar', 'https://www.example.com', '-d']
args: ['-Ofile.out', '--header', 'Authorization: Bearer foobar', 'https://httpbin.org', '-d']

# POST information to a server, specifying a Content-type header.
- name: 'gcr.io/$PROJECT_ID/wget'
args: ['--header', 'Content-type: application/json', '--post-data="{\"buildID\": \"$BUILD_ID\"}"', 'https://www.example.com']
args: ['--header', 'Content-type: application/json', '--post-data="{\"buildID\": \"$BUILD_ID\"}"', 'https://httpbin.org/post']

images:
- 'gcr.io/$PROJECT_ID/wget'

0 comments on commit 246a271

Please sign in to comment.