+ /* Setup hb_query and hb_query_two with the correct appcast file */
+ hb_log( "Using %s", url );
+
+ /* extract host part */
+ cur = strstr( HB_PROJECT_URL_APPCAST, "//" );
+ if( !cur || cur+2 > urlz )
+ goto error;
+ cur += 2;
+
+ end = strstr( cur, "/" );
+ if( !end || end > urlz )
+ goto error;
+
+ memset( url_host, 0, sizeof(url_host) );
+ strncpy( url_host, cur, (end-cur) );
+
+ /* extract path part */
+ memset( url_path, 0, sizeof(url_path) );
+ strncpy( url_path, end, (urlz-end) );
+
+ if( !strlen( url_path ))
+ goto error;
+
+ memset( query, 0, sizeof(query) );
+ snprintf( query, sizeof(query), "GET %s HTTP/1.0\r\nHost: %s\r\n\r\n", url_path, url_host );
+
+ /* Grab the data from the web server */
+ if( !( net = hb_net_open( url_host, 80 ) ) )