Home | History | Annotate | Download | only in src

Lines Matching refs:url

45     Curl_safefree(node->url);
54 bool output_expected(const char *url, const char *uploadfile)
58 if(checkprefix("http://", url) || checkprefix("https://", url))
71 * Adds the file name to the URL if it doesn't already have one.
72 * url will be freed before return if the returned pointer is different
74 char *add_file_name_to_url(CURL *curl, char *url, const char *filename)
76 /* If no file name part is given in the URL, we add this file name */
77 char *ptr = strstr(url, "://");
81 ptr = url;
84 /* The URL has no file name part, add the local file name. In order
85 to be able to do so, we have to create a new URL in another
101 /* URL encode the file name */
106 /* there is a trailing slash on the URL */
107 urlbuffer = aprintf("%s%s", url, encfile);
109 /* there is no trailing slash on the URL */
110 urlbuffer = aprintf("%s/%s", url, encfile);
113 Curl_safefree(url);
118 url = urlbuffer; /* use our new URL instead! */
121 Curl_safefree(url);
123 return url;
126 /* Extracts the name portion of the URL.
130 CURLcode get_url_file_name(char **filename, const char *url)
137 pc = strstr(url, "://");
141 pc = url;