Watch, Follow, &
Connect with Us
Public Report
Report From: EDN/Discussion Forums/Browser interface    [ Add a report in this area ]  
Report #:  140250   Status: Reported
RestRequest POST fails when redirected
Project:  EDN Build #:  24.0.25048.9432
Version:    2 Submitted By:   Erik Van Gorp
Report Type:  Basic functionality failure Date Reported:  2/2/2017 6:19:25 AM
Severity:    Critical / Show Stopper Last Updated: 2/2/2017 6:16:18 AM
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When I Post To a REST server (p.e. PRESTASHOP) and the server returns a 302 FOUND (redirect), the POST is not redirected, but a GET is issued, resulting in a resources list in stead of the id of the item created.

In Delphi XE 10 Seattle, the redirect was followed by a new POST, wich worked.
Steps to Reproduce:
see included network traces
Workarounds
use Delphi XE 10 seatlle
Attachment
140250.zip
Comments

Erik Van Gorp at 2/2/2017 6:26:58 AM -
in SEATTLE : ok

POST >>>
     <<< FOUND 302
POST >>>
     <<< CREATED

in BERLIN : wrong

POST >>>
     <<< FOUND 302
GET  >>>
     <<< List Of existing entries


Server Response from: ETNACODE01