mirror of
https://github.com/trickster0/OffensiveRust
synced 2026-06-08 17:54:47 +00:00
Update4
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "http-https-requests"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
author = "trickster0"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
reqwest = {version = "0.11.4", features = ["blocking"]}
|
||||
@@ -0,0 +1,14 @@
|
||||
extern crate reqwest;
|
||||
|
||||
fn main() {
|
||||
|
||||
let client = reqwest::blocking::Client::builder().danger_accept_invalid_certs(true).build().unwrap();
|
||||
let _response = client.post("https://google.com/test").header("Authorization", "testtest" ).body("test").send();
|
||||
let test = _response.unwrap().text().unwrap();
|
||||
let client2 = reqwest::blocking::Client::builder().danger_accept_invalid_certs(true).build().unwrap();
|
||||
let url = "https://google.com";
|
||||
let argumentsdata = format!("register={}","1234");
|
||||
let concat = [url,&argumentsdata].join("/");
|
||||
client2.get(&concat).send();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user