#[tokio::test]
#[ignore]
async fn ozon_with_redirect_follow() {
let profile = browser_oxide::stealth::presets::chrome_148_ru();
let client = browser_oxide::net::HttpClient::new(&profile).unwrap();
let resp = client.get_follow("https://www.ozon.ru", 5).await.unwrap();
println!("[ozon follow] status: {}", resp.status);
println!("[ozon follow] url: {}", resp.url);
println!("[ozon follow] body length: {}", resp.body.len());
let body = resp.text();
println!("[ozon follow] preview: {}", &body[..body.len().min(300)]);
}
#[tokio::test]
#[ignore]
async fn airbnb_header_check() {
let profile = browser_oxide::stealth::chrome_148_windows();
let client = browser_oxide::net::HttpClient::new(&profile).unwrap();
let resp = client.get("https://httpbin.org/headers").await.unwrap();
println!("[our headers]:\n{}", resp.text());
}
#[tokio::test]
#[ignore]
async fn yandex_http11() {
let profile = browser_oxide::stealth::presets::chrome_148_ru();
let client = browser_oxide::net::HttpClient::new(&profile).unwrap();
let resp = client.get("https://yandex.ru/search/?text=test").await;
match resp {
Ok(r) => {
println!("[yandex search] status: {}", r.status);
println!("[yandex search] body length: {}", r.body.len());
}
Err(e) => println!("[yandex search] error: {e}"),
}
}
#[tokio::test]
#[ignore]
async fn amazon_challenge_content() {
let profile = browser_oxide::stealth::chrome_148_windows();
let client = browser_oxide::net::HttpClient::new(&profile).unwrap();
let resp = client.get("https://www.amazon.com").await.unwrap();
println!("[amazon] status: {}", resp.status);
println!("[amazon] full body:\n{}", resp.text());
}