Preface
In RBA, the request to build an HTTP is simple.
It provides four types of HTTP process
The implementation of a single get and post is simple, but sometimes there is a situation where some sites need to be logged in to do other things first.
There are two ways to sign in
1. The Get mode login does not have to say, directly after the HTTP link to add the corresponding login information. One execution is all that's possible.
2. Post login mode, there is a session of the problem.
call an HTTP GET request
The request to call an HTTP GET is simple and creates a new process under the module under development.
Two nodes
The above get is using the default HTTP Get provided by the system, URL parameter is required
Note To configure the appropriate adapter, the URL parameter is required.
After the configuration is complete, in studio, click Run To test the
call an HTTP POST request
The HTTP post is handled in a similar way to the Get method, except that the post must be populated with one more data. This is where you save the post value.
The format of data can be XML, followed by a certain pattern. Specific how to write can refer to the development documentation.
need to pass the session condition
First, for example, a situation:
There is a get link for HTTP, which needs to be logged into this site first.
The normal idea is to configure two nodes
The first one is a post to log in, the second is get link
However, the actual situation is that although the first post login is executed, the second one is reported without permission.
The reason is that the associated HTTP session is not saved and passed.
Take a look at the contents of the response returned by get
After the get is executed, the session information is returned, in addition to the contents of the HTML inside the message-body.
So is it possible to save this session for delivery?
Process configuration as above.
In Assign Session ID This setting jessionid this variable
At Post Login this off
Configuring Connection Properties
The content is configured as follows:
The last get link also makes the same configuration.
Run, everything's fine.
Supplement
Sometimes HTTP may pass directory information similar to the following
Path=\\aaa\bb
With backslashes
Backslashes are particularly sensitive in RBA and need to be escaped, similar to those that can be turned into
%5c%5caaa%5cbb
As for what to turn into%5c, you can do it in JS to know
document.write (encodeURI ("\ \"));
[RBA development Series one] process for establishing an HTTP request