代码搜索:HttpClient
找到约 1,095 项符合「HttpClient」的源代码
代码结果 1,095
www.eeworm.com/read/301149/3842461
java httpclient.java
import java.io.*;
import java.net.*;
/**
* 这个程序可以连接到一个网络服务器并且能够从这个服务器下载指定的URL。在
* 程序中直接使用HTTP协议
*/
public class HttpClient {
public static void main(String[] args) {
try {
// 测试参数
www.eeworm.com/read/296895/3897724
java httpclient.java
import java.net.*;
import java.io.*;
public class HTTPClient {
String host="www.javathinker.org";
int port=80;
Socket socket;
public void createSocket()throws Exception{
socket=
www.eeworm.com/read/295164/3911862
java httpclient.java
import java.io.*;
import java.net.*;
/**
* 这个程序可以连接到一个网络服务器并且能够从这个服务器下载指定的URL。在
* 程序中直接使用HTTP协议
*/
public class HttpClient {
public static void main(String[] args) {
try {
// 测试参数
www.eeworm.com/read/291502/3964568
java httpclient.java
/*
* Copyright (c) 2000 David Flanagan. All rights reserved.
* This code is from the book Java Examples in a Nutshell, 2nd Edition.
* It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or
www.eeworm.com/read/290309/3979986
java httpclient.java
import java.net.*;
import java.io.*;
public class HTTPClient {
String host="www.javathinker.org";
int port=80;
Socket socket;
public void createSocket()throws Exception{
socket=
www.eeworm.com/read/281519/4115560
h httpclient.h
#ifndef UTILS_BASE_HTTPCLIENT_H_
#define UTILS_BASE_HTTPCLIENT_H_
#include "common.h"
#include "httpbase.h"
#include "proxyinfo.h"
#include "scoped_ptr.h"
#include "sigslot.h"
#include "socketaddress
www.eeworm.com/read/281519/4115564
cc httpclient.cc
#include
#include "httpcommon-inl.h"
#include "asyncsocket.h"
#include "common.h"
#include "diskcache.h"
#include "httpclient.h"
#include "logging.h"
#include "pathutils.h"
#include "socket
www.eeworm.com/read/281519/4116285
h httpclient.h
#ifndef UTILS_BASE_HTTPCLIENT_H_
#define UTILS_BASE_HTTPCLIENT_H_
#include "common.h"
#include "httpbase.h"
#include "proxyinfo.h"
#include "scoped_ptr.h"
#include "sigslot.h"
#include "socketaddress
www.eeworm.com/read/281519/4116286
cc httpclient.cc
#include
#include "httpcommon-inl.h"
#include "asyncsocket.h"
#include "common.h"
#include "diskcache.h"
#include "httpclient.h"
#include "logging.h"
#include "pathutils.h"
#include "socket
www.eeworm.com/read/276084/4169207
java httpclient.java
package book.net.http;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* 访问HTTP的客户端。将网页的内容显示在控制台中。这里得到的是一堆HTML代码