Why didn't the socket program written in c language successfully visit Baidu?

-sharpinclude<stdio.h>
-sharpinclude<string.h>
-sharpinclude<winsock2.h>
char buff[2001];
int main()
{
    WSADATA wsaData;
    WSAStartup(MAKEWORD(2, 0), &wsaData);
    // 

    int sockfd=socket(AF_INET,SOCK_STREAM,0);//socket   
    struct sockaddr_in dest_addr;  // 
    int size;
    
    char s[]="GET / HTTP/1.1\r\n""Host:www.baidu.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6)Gecko/20050225 Firefox/1.0.1Connection: Keep-Alive\r\n";
    //httpget 
    
    dest_addr.sin_family=AF_INET;
    dest_addr.sin_port=htons(80);
    dest_addr.sin_addr.s_addr=inet_addr("61.135.169.121");
    memset(dest_addr.sin_zero,0,8);
    // ipping 
    
    connect(sockfd,(struct sockaddr*)&dest_addr,sizeof(struct sockaddr));
    // 
    
    printf("connect success");

    send(sockfd,s,sizeof(s),0);

    buff[recv(sockfd,buff,2000,0)]=0;
    printf("%s",buff);

    closesocket(sockfd);

    return 0;
}
Dec.13,2021

your connect success may not be printed because it is in the IO buffer.
uses

.
    printf("connect success");
    fflush(stdout);

should be all right.

as for the content that is not returned, it may be that the GET request is incorrect

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3696f-2b38c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3696f-2b38c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?