SetupUrl(m_userData);
nsNntpTestDriver::OnPostMessage(){    nsresult rv = NS_OK;    char *subject;    char *message;        rv = PromptForUserDataAndBuildUrl("Newsgroup: ");    m_urlString[0] = '\0';    PL_strcpy(m_urlString, m_urlSpec);    PL_strcat(m_urlString, "/");    PL_strcat(m_urlString, m_userData);    // now we need to attach a message    SetupUrl(m_userData);        rv = PromptForUserDataAndBuildUrl("Subject: ");    subject = PL_strdup(m_userData);    printf("Enter your message below. End with a blank line.\n");    rv = PromptForUserDataAndBuildUrl("");    int messagelen = 0;    message = NULL;    printf("[%2X][%2X][%2X][%2X]\n",           m_userData[0], m_userData[1], m_userData[2], m_userData[3]);    while (m_userData[0]) {        int linelen = PL_strlen(m_userData);        char *newMessage = (char *)PR_Malloc(linelen+messagelen+2);                PL_strcpy(newMessage, message);        PL_strcat(newMessage, m_userData);        PL_strcat(newMessage, "\n");        PR_FREEIF(message);        message = newMessage;        rv = PromptForUserDataAndBuildUrl("");    }    printf("Ready to post the message:\n");    printf("Subject: %s\n", subject);    printf("Message:\n", message);	return rv;}