POST request returns error 403

1
Hello! I have a problem when i try to post. I read the answer to another same question where the problem was fixed (https://forum.mendix.com/link/questions/88801) and did everything it said, but I still have the same problem. Please, could anybody help?  
asked
4 answers
1

I see an issue in your request. After you get a response with a header called

set-cookie

you should be passing it as a header in the next request as just

cookie

 

answered
0

Hey Judith,

 

I don’t have an answer right away, but when debugging REST services, I find it helpful to recreate everything in Postman. That way i can manually set all keys and values and also solely focus on the REST call.

Once managed to get it running manually, I reproduce it in Mendix.

 

Hope that helps,

Tom

answered
0

If possible, contact the party that you are posting to. 403 is the http-standard response for authentication issues, but they can actually set it themselves (I agree, it’s unlikely). Also, they will probably be able to verify if your credentials are valid or not.

And Tom’s way is also good. Next to that, you might prefer SOAP over Postman, or (I don’t know your background) even prefer curl.

***Edited, since your call is fine from Postman. ***

Now check out the log by in StudioPro going to Console=>Advanced=>Set log levels. Find ‘Rest Consume’ and set the level to ’Trace’. Do the rest-call again and you will see extra lines in the log. See if they tell you more.

answered
0

Doing the rest-call, I get the following results. It seems that the problem is in the token, but I don’t understand why.

Request content:

 

Response content:

 

This is the Postman request:

 

answered