Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

REST POST returning 302 redirect #115

Open
AprilMedinger opened this issue Aug 31, 2015 · 4 comments
Open

REST POST returning 302 redirect #115

AprilMedinger opened this issue Aug 31, 2015 · 4 comments

Comments

@AprilMedinger
Copy link

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

@AprilMedinger
Copy link
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.

@clarkphp
Copy link

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

@rdxwkpr
Copy link

rdxwkpr commented Sep 21, 2015

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

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-skeleton; a new issue has been opened at laminas-api-tools/api-tools-skeleton#14.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants