如twitter.com:443 u 23 517 d 154 u 51 53 98 809 d 44
从左向右看
首先twitter.com:443
表示访问twitter.com的443端口,即https
上传方向(以字母u表示),先发送23字节,再发517字节,
然后下载方向(以字母d表示),收到154字节,
接着上传方向再上传51、53、98、809字节,
最后下载方向收到44字节后,连接断开。
一行内容即为一次连接的记录
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'json' | |
def request | |
Net::HTTP.get(URI('http://socialclub.rockstargames.com/games/gtav/ps4/bawsaq')) | |
uri = URI('http://socialclub.rockstargames.com/games/gtav/ajax/stockdetail') | |
http = Net::HTTP.new(uri.host, uri.port) | |
req = Net::HTTP::Get.new(uri) |