Maida umarnin CURL zuwa lambar tsatsa akan layi

Curl command

Examples: GET - POST - JSON - Basic Auth - Files - Form

CURL zuwa Tsatsa akan layi

Wannan kayan aikin yana taimaka muku ƙirƙirar lambar tsatsa bisa umarnin CURL. Kwafi da liƙa umarnin CURL kuma haifar da Tsatsa.

Me zaku iya yi tare da CURL zuwa mai canza Rust akan layi?

  • CURL zuwa Tsatsa kayan aiki ne na musamman don canza umarnin CURL zuwa buƙatar tsatsa. Shigar da shigar ta hanyar umarnin CURL na mai amfani don samar da lambar tsatsa.
  • Wannan kayan aikin yana adana lokacin ku kuma yana taimakawa ƙirƙirar lambar tsatsa cikin sauƙi.
  • CURL zuwa Tsatsa yana aiki da kyau akan Windows, MAC, Linux, Chrome, Firefox, Edge da Safari.

menene CURL?

CURL kayan aikin layin umarni ne mai buɗewa wanda ke zazzage fayiloli daga gidan yanar gizo. Yana goyan bayan ka'idoji iri-iri, gami da Rust, RustS, FTP, SFTP, TFTP, Gopher da sauransu.

Ta yaya ake canza CURL zuwa lambar Rust? 

Mataki 1: Manna kuma canza buƙatun ku na CURL zuwa lambar tsatsa

Mataki 2: Kwafi Rust code

Maida CURL zuwa Misalin Tsatsa

CURL
curl example.com
PHP Guzzle
extern crate reqwest;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = reqwest::blocking::Client::builder()
        .redirect(reqwest::redirect::Policy::none())
        .build()
        .unwrap();
    let res = client.get("http://example.com")
        .send()?
        .text()?;
    println!("{}", res);

    Ok(())
}