MCPcopy Index your code
hub / github.com/MapServer/MapServer / msHTTPInitRequestObj

Function msHTTPInitRequestObj

maphttp.c:121–152  ·  view source on GitHub ↗

* msHTTPInitRequestObj() * * Should be called on a new array of httpRequestObj to initialize them * for use with msHTTPExecuteRequest(), etc. * * Note that users of this module should always allocate and init one * more instance of httpRequestObj in their array than what they plan to * use because the terminate_handler() needs the last entry in the array * to hav

Source from the content-addressed store, hash-verified

119 *
120 **********************************************************************/
121void msHTTPInitRequestObj(httpRequestObj *pasReqInfo, int numRequests)
122{
123 int i;
124
125 for(i=0; i<numRequests; i++)
126 {
127 pasReqInfo[i].pszGetUrl = NULL;
128 pasReqInfo[i].pszPostRequest = NULL;
129 pasReqInfo[i].pszPostContentType = NULL;
130 pasReqInfo[i].pszOutputFile = NULL;
131 pasReqInfo[i].nLayerId = 0;
132 pasReqInfo[i].nTimeout = 0;
133 pasReqInfo[i].nStatus = 0;
134 pasReqInfo[i].pszContentType = NULL;
135 pasReqInfo[i].pszErrBuf = NULL;
136 pasReqInfo[i].pszUserAgent = NULL;
137 pasReqInfo[i].pszHTTPCookieData = NULL;
138 pasReqInfo[i].pszProxyAddress = NULL;
139 pasReqInfo[i].pszProxyUsername = NULL;
140 pasReqInfo[i].pszProxyPassword = NULL;
141 pasReqInfo[i].pszHttpUsername = NULL;
142 pasReqInfo[i].pszHttpPassword = NULL;
143
144 pasReqInfo[i].debug = MS_FALSE;
145
146 pasReqInfo[i].curl_handle = NULL;
147 pasReqInfo[i].fp = NULL;
148 pasReqInfo[i].result_data = NULL;
149 pasReqInfo[i].result_size = 0;
150 pasReqInfo[i].result_buf_size = 0;
151 }
152}
153
154
155/**********************************************************************

Callers 4

msDrawMapFunction · 0.85
msDrawWMSLayerFunction · 0.85
msWFSLayerWhichShapesFunction · 0.85
msHTTPGetFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected