CURL zuwa Dart Online
Wannan kayan aikin yana taimaka muku ƙirƙirar lambar Dart bisa umurnin CURL. Kwafi da Manna Umurnin CURL kuma Samar da Dart.
Me zaku iya yi da CURL zuwa Dart Converter Online?
- CURL zuwa Dart kayan aiki ne na musamman don canza umarnin cURL zuwa buƙatar http na Dart. Shigar da shigarwar ta hanyar umarnin cURL na mai amfani don samar da Dart Code.
- Wannan kayan aikin yana adana lokacin ku kuma yana taimakawa ƙirƙirar lambar Dart cikin sauƙi.
- CURL zuwa Dart 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 HTTP, HTTPS, FTP, SFTP, TFTP, Gopher da sauransu.
Ta yaya ake canza CURL zuwa lambar Dart?
Mataki 1: Manna kuma canza buƙatun ku na CURL zuwa lambar Dart.
Mataki 2: Kwafi Dart Code
Maida CURL zuwa Misalin Dart
CURL
cURL example.com
Dart Code
import 'package:http/http.dart' as http;
void main() async {
var url = Uri.parse('http://example.com');
var res = await http.get(url);
if (res.statusCode != 200) throw Exception('http.get error: statusCode= ${res.statusCode}');
print(res.body);
}