Hi,

Thanks for your information.

To make http request, I have used the function

StrPrintF(buffer, http_header, wget.location, wget.host);

Here,
http_header= "GET /%s HTTP/1.0\nHost: %s\nAccept: */*\n\n";
wget.location="/temp/test.pdb";
wget.host="www.testhost.com";

Buffer value is " GET/temp/test.pdbHTTP/1.0/Host:www.testhost.comAccept:*/* "

   // Send buffer by socket to host
NetLibSend(AppNetRefnum, wget.sock, buffer, StrLen(buffer), 0, 0, 0, -1, &errcode); If I use these functions, particular pdb is downloaded in HTTP. But how can I use Ftp with username and password?

Thanks
Bharathi

Dollars 5 wrote:

you can use the username and password in the address itself as ftp://[EMAIL PROTECTED]:ftpaddress.com

- Dollars5

On 9/19/06, *Bharathi Kumaraswamy* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hello All,

    I am trying to download a pdb file from FTP server. I am able to
    do the same through http connection without username and password.

    But, I need to use username and password through FTP. Please help.

    Thanks
    Bharathi
    --
    For information on using the PalmSource Developer Forums, or to
    unsubscribe, please see http://www.palmos.com/dev/support/forums/


-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/




--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to