socket program thro proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
Iam inside a firewall(proxy server). Im writing a socket program (which
opens a tcp socket, connects to a site (say yahoo.com :80), and sends a http
request). now, whose details should i fill in the server address, is it the
proxy server's ip and port # or the server (yahoo) to which i want to
connect to. If i should fill the proxy's details in the server address, is
it enough to send like this

    char http_req[80]="GET http://mail.yahoo.com/ HTTP/1.1";
    send(sockd,http_req,80,0);


tx
rajesh balan 





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux