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

When using the filterSave method, the zs-client.phar sends an HTTP method error #63

Closed
ericovasconcelos opened this issue Apr 30, 2015 · 1 comment

Comments

@ericovasconcelos
Copy link

I've tried to use a method to import a filter rule from one server to other, but when using the filterSave method, it requires a POST method:

php zs-client.phar filterSave --type=issue --target=zst --name=CLIQueryAllEvents --data={"applicationIds":[29]}
2015-04-30T16:24:43-03:00 ERR (3): This action requires a HTTP POST method


filterSave


unexpectedHttpMethod

The application has thrown an exception!

ZendServerWebApi\Model\Exception\ApiException
This action requires a HTTP POST method

slaff pushed a commit to zend-patterns/ZendServerWebApiModule that referenced this issue May 4, 2015
@slaff slaff closed this as completed in 70fea7a May 4, 2015
@slaff
Copy link
Contributor

slaff commented May 4, 2015

@ericovasconcelos The issue is fixed in the latest phar ( https://github.com/zend-patterns/ZendServerSDK/raw/master/bin/zs-client.phar ) version. Make sure also to use query string formatting for passing the data and not json formatting. The correct way to test the filterSave with the data that you have provided will be:

php zs-client.phar filterSave --type=issue --target=zst --name=CLIQueryAllEvents --data="applicationIds[]=29"

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

2 participants