Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Be consistent. -- Larry Wall in the perl man page


computers / comp.mobile.android / 04 requestsView request body.py

SubjectAuthor
o 04 requestsView request body.pyKyle Eddington

1
04 requestsView request body.py

<3d98e725-e5b0-4ecb-a903-c04ac7c98350n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=48671&group=comp.mobile.android#48671

  copy link   Newsgroups: comp.mobile.android
X-Received: by 2002:a05:622a:184:b0:427:a2bd:c13 with SMTP id s4-20020a05622a018400b00427a2bd0c13mr70575qtw.10.1703211953930;
Thu, 21 Dec 2023 18:25:53 -0800 (PST)
X-Received: by 2002:a05:6808:1a0f:b0:3bb:74a5:4780 with SMTP id
bk15-20020a0568081a0f00b003bb74a54780mr8962oib.3.1703211953630; Thu, 21 Dec
2023 18:25:53 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mobile.android
Date: Thu, 21 Dec 2023 18:25:53 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=58.26.140.93; posting-account=6s3XFQoAAABU19YxrRKH_HWmy3vqE4iF
NNTP-Posting-Host: 58.26.140.93
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3d98e725-e5b0-4ecb-a903-c04ac7c98350n@googlegroups.com>
Subject: 04 requestsView request body.py
From: kyleeddi...@gmail.com (Kyle Eddington)
Injection-Date: Fri, 22 Dec 2023 02:25:53 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 16
 by: Kyle Eddington - Fri, 22 Dec 2023 02:25 UTC

import requests

headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
}

response = requests.get('https://www.topbagyes.com', headers=headers)
# html_str = response.text
# print(html_str)

"""View request body information"""
# response.request View request body information
print(response.request.url)# View the url address in the request body
print(response.request.headers)# Check the request header information in the request body. The requests module will automatically bring common request fields when making a request.
print(response.request.method)# View the request method in the request body

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor