Lines Matching refs:url
239 PRStatus ParseURL(char *url, char *host, PRUint32 hostSize,
248 if (strncmp(url, "http", 4)) {
252 if (strncmp(url + 4, "://", 3) || url[7] == '\0') {
253 fprintf(stderr, "httpget: malformed URL: %s\n", url);
257 start = end = url + 7;
309 fprintf(stderr, "usage: httpget url\n"
310 " httpget -o outputfile url\n"
311 " httpget url -o outputfile\n");
327 char *url;
338 * case 1: httpget url
340 url = argv[1];
344 * case 2: httpget -o outputfile url
347 url = argv[3];
350 * case 3: httpget url -o outputfile
352 url = argv[1];
361 if (ParseURL(url, host, sizeof(host), port, sizeof(port),