Someone that is not using Domino will call a url(say it’s urlA) and do a ‘POST’. The purpose of this is so that information can be passed to me NOT via the url.
I’ll then need to need do a ‘GET’ to get all the data from the necessary fields (e.g. FieldA, FieldB, FieldC etc). How can this be done in Domino?
Do i need to write an agent? If so, does it mean that the url that this person calls (i.e. urlA) will need to run this agent? How can i then retrieved all the field contents? Please provide some explanation and code examples…
Subject: RE: How to use ‘GET’ to retrieve data from a ‘POST’
The person that will be doing the POST, will also be providing me with quite a number of field values. Are you saying that all the field and its values must be on the url? I believe the purpose of doing a POST is so that there is no need for all the fields to be on the url or have i misinterpreted your message? Could you provide me with some sample code?
Please note that the person that is calling the url (i.e. could have ?OpenAgent in the url) could be passing up to 30 fields to me…
Subject: RE: How to use ‘GET’ to retrieve data from a ‘POST’
Have you ever looked at what happen with a HTML form when the post is used? Maybe you need to examine this first and decide what you want to do before seeking help.
If you are going to pass information to agent there are not many number of options than my previous post.
Subject: How to use ‘GET’ to retrieve data from a ‘POST’
No, you don’t need to do a ‘GET’. Yes, you need to write an agent. The user then sends a POST request to the url to the agent. Often this means putting a ?OpenAgent domino url in a HTML form action.
In the agent you can access a NotesDocument from session.DocumentContext. This is a temporary NotesDocument created from the POST data.
This temporary document also stores common CGI data fields, including ‘Request_Content’ which will have all your POST data in it in URLEncoded name=value pairs.
Because it’d only temporary, it dissappears when the agent finishes. You must either save the document to store it or use the data in the agent to do your stuff.