Code: Show/Hide string url = "GET http://www1.macys.com/shop/product/?ID="; url += argv[1]; // Add product id to URL url += "\r\nHTTP/1.1\r\n"; url += "Host: www1.macys.com\r\n"; url += "Connection: close\r\n"; char buf[BUFFSIZE]; // 512 send(sock,url.c_str(),url.length(),0); // Send socket recv(sock,buf,BUFFSIZE,0); |
Code: Show/Hide <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd" lang="en-us"> <head> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <META NAME="ROBOTS" CONTENT="NOINDEX"><!-- o --> <title>Not Found - Macy's</title> <meta http-equiv="generator" content="JACPKMALPHTCSJDTCR"> <script type="text/javascript" language="JavaScript"> <!-- function getForwardPageURL() ???????? |
Code: Show/Hide <!DOCTYPE html>
<html lang="en-us"> <head> <title>JS Boutique Dress, One Shoulder Draped Evening Dress - Womens Dresses - Macy's</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="generator" content="JACPKMALPHTCSJDTCR" /> |