add comment
This commit is contained in:
parent
c7ed65cc9c
commit
b0cfa330a5
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Author Coderfengyun
|
||||
*
|
||||
* And th parmas has some special split.
|
||||
* Like, QueryParams and bodyParams should be split by ';'
|
||||
* And Headers should be split by '|;'
|
||||
*/
|
||||
package org.bench4q.agent.plugin.basic.http;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -84,7 +91,8 @@ public class HttpPlugin {
|
|||
public HttpReturn get(@Parameter("url") String url,
|
||||
@Parameter("queryParams") String queryParams,
|
||||
@Parameter("headers") String headers) {
|
||||
// QueryParams should be split by ;
|
||||
// QueryParams should be split by ';'
|
||||
// headers should be split by '|;'
|
||||
GetMethod method = new GetMethod(completeUri(url));
|
||||
if (isValidString(queryParams)) {
|
||||
method.setQueryString(queryParams);
|
||||
|
@ -131,6 +139,17 @@ public class HttpPlugin {
|
|||
private void setCookies(Header requestHeader, String domain) {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param url
|
||||
* @param queryParams
|
||||
* @param headers
|
||||
* @param bodyContent
|
||||
* , when the Content-Length in header G.T. zero, then use this
|
||||
* @param bodyParams
|
||||
* , else use this
|
||||
* @return
|
||||
*/
|
||||
@Behavior("Post")
|
||||
public HttpReturn post(@Parameter("url") String url,
|
||||
@Parameter("queryParams") String queryParams,
|
||||
|
|
Loading…
Reference in New Issue