Lines Matching defs:query
80 char *query;
97 free(u->query);
108 const char *query;
117 query = strchr(sep, '?');
123 if(!query)
124 query = url + strlen(url);
126 return sep < query ? sep : query;
146 bool query)
149 bool left = !query;
286 available, or if the new URL is just a query string (starts with a
882 * The function handles a query part ('?' + stuff) appended but it expects
1004 char *query = NULL;
1196 /* this pathlen also contains the query and the fragment */
1263 /* after this, pathlen still contains the query */
1267 query = memchr(path, '?', pathlen);
1268 if(query) {
1269 size_t qlen = fragment ? (size_t)(fragment - query) :
1270 pathlen - (query - path);
1277 result = urlencode_str(&enc, query + 1, qlen - 1, TRUE, TRUE);
1280 u->query = Curl_dyn_ptr(&enc);
1283 u->query = Curl_memdup0(query + 1, qlen - 1);
1284 if(!u->query) {
1291 /* single byte query */
1292 u->query = strdup("");
1293 if(!u->query) {
1403 DUP(u, in, query);
1488 ptr = u->query;
1596 (u->query && u->query[0]) ? "?": "",
1597 (u->query && u->query[0]) ? u->query : "",
1732 storep = &u->query;
1818 storep = &u->query;
1925 /* Append the 'newp' string onto the old query. Add a '&' separator if
1926 none is present at the end of the existing query already */
1928 size_t querylen = u->query ? strlen(u->query) : 0;
1929 bool addamperand = querylen && (u->query[querylen -1] != '&');
1934 if(Curl_dyn_addn(&qbuf, u->query, querylen)) /* add original query */