How to get back a POST sent by the Customer (Datasnap REST)

Asked

Viewed 628 times

1

I have a Webservice Server REST developed by the IDE Embarcadero Delphi XE7, I need to take the return of POST customer’s.

I created Webservice from the Datasnap REST Application, when creating the project it comes with the following classes Form, ServerMethods and WebModule. I have a specific function for when the client accesses it via HTTP with the method POST, she must take the user and password sent by the customer via Body with the guy from content-type=application/x-www-form-urlencoded, the client does not use authentication.

Only my problem, is how I can get this information when the customer sends this information.

  • I have the answer of how it should be done to work on Delphi with Datasnap REST, which is totally different from how it is used in Java, as was put in my question. So if anyone can reopen it I can post the answer. Thank you.

  • Jefferson, I voted to reopen and signal to the moderators. I suggest you edit the question to make it very clear what it is about Delphi, and not just get implied because of the tag. I suggest putting some code snippets that can guide other people who want to respond (besides yourself).

  • @Victorstafusa, all right, I will edit the question and explain better, the answer I have ready to post, I want to make available to help the rest of the forum. Thank you

  • @Victorstafusa, I edited the question, I hope I’ve been clear, any suggestion let me know.

  • In the current form the question is not clear or is too broad, if it is reopened and has no problem to be solved, it can be closed again. In the current form it is understood that the question only wants a hint of how to do, so the duplicate falls well. If it is more specific and not only the tip serves, then the question does not give necessary subsidies to answer properly. Each one will answer what he understands.

  • @bigown, even though I specified which IDE I’m using, edited the question again, but I don’t know what else to include in my question for better understanding, what I really wanted when I posted it, was how to get back from the customer’s POST, but made in Delphi using the Datasnap REST.

  • Friends, I’m sorry to disagree.. but it’s clear that @Jeffersonrudolf’s doubt is about the Delphi (at least after editing), more specifically DataSnap and not of Java according to the other question. Finally, I do not consider a double question.

  • Jefferson and @Andrey - What the bigown said is that even though it is not duplicated, this question still has other problems, because it is too broad. I suggest putting more details about the code in the question.

  • @bigown, I edited the question, I hope I was clear, I tried to specify Max what I want and how I created the project to get in my doubt. Hugs.

  • @Victorstafusa, I understand, I edited the question, I tried to be as specific as possible, pointing to which tool I want to be clarified and how I arrived at this doubt. Hugs

Show 5 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.