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

REST POST returning 302 redirect #14

Open
weierophinney opened this issue Dec 31, 2019 · 3 comments
Open

REST POST returning 302 redirect #14

weierophinney opened this issue Dec 31, 2019 · 3 comments

Comments

@weierophinney
Copy link
Contributor

When I send a POST to my REST service it returns with a 302 redirect which simply redirects to the same URI and sends the request again as a GET. Very strange. Saw a post on stackoverflow ( http://stackoverflow.com/questions/32232127/apigility-302-found-response ) that was saying the same thing. I've updated all dependencies.. running Dev-Master (Composer screen shot attached) Platform: Zend Server 8.5 i IBMi (no rewrite rules occurring)

Also running Zend Server 8.5 on Windows PC localhost and don't have any problems with POST.

composerjson


Originally posted by @AprilMedinger at zfcampus/zf-apigility-skeleton#115

@weierophinney
Copy link
Contributor Author

Fixed the problem by creating a new Response object, setting the code to 200 and content. Problem solved.. hacked but solved. Any insight on why this was happening would still be nice.


Originally posted by @AprilMedinger at zfcampus/zf-apigility-skeleton#115 (comment)

@weierophinney
Copy link
Contributor Author

Hello April,
Have you recently applied PTFs related to SSL, such as MF60335, MF60430, SI57332 ?
If so, was your application working before the application of the PTFs?

Clark


Originally posted by @clarkphp at zfcampus/zf-apigility-skeleton#115 (comment)

@weierophinney
Copy link
Contributor Author

Hey Clark,

I am working with April on this.

We have all three of the PTF's you mentioned. Unfortunately we did not have the code working before we applied the PTF's so we have no idea if it would have worked without them.

We are not running SSL in this test configuration so not sure why SSL ptf's wouid interfere.

Greg


Originally posted by @rdxwkpr at zfcampus/zf-apigility-skeleton#115 (comment)

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

1 participant