here is my new code, if anyone has any more help thats great, if not no worries.
Code:
#include <stdio.h>
int main()
{
char username[9], /* user names can not exceed higher then 8 characters */
password[9], /* passwords can not exceed higher then 8 characters */
URL[512]; /* extra space allowing considering lengths of UN + pass */
printf("-\t\t\t\t-\n- Welcome to Optus Netstats.\t-\n- Please enter your"
"user name at -\n- the prompt with your password -\n- following.\t\t\t"
"-\n-\t\t\t\t-\n\n");
printf("User Name: ", username);
scanf("%s", username);
fflush(stdin); /* clears extra characters */
printf("\nPassword: ", password);
scanf("%s", password);
fflush(stdin); /* clears extra characters */
printf("\ntext %s %s\n\n", username, password); /* stub */
sprintf(URL, "https://myaccount.optusnet.com.au/mydatamonitor/usage.txt?"
"login=%s&passwd=%s", username, password); /* puts correct URL
to a string for use later */
puts(URL);
getchar(); /* allows more portability */
return 0;
}