[{"data":1,"prerenderedAt":160},["ShallowReactive",2],{"tool-content-en-curl-converter":3},{"id":4,"title":5,"body":6,"description":150,"extension":151,"locale":152,"meta":153,"navigation":154,"path":155,"seo":156,"stem":157,"toolId":158,"__hash__":159},"tools\u002Ftools\u002Fen\u002Fcurl-converter.md","cURL Command Converter",{"type":7,"value":8,"toc":143},"minimark",[9,14,49,53,126,129,133,140],[10,11,13],"h2",{"id":12},"from-one-curl-to-eleven-outputs","From one curl to eleven outputs",[15,16,17,18,22,23,26,27,30,31,34,35,37,38,41,42,44,45,48],"p",{},"Paste a curl command and convert it to JavaScript ",[19,20,21],"code",{},"fetch",", JavaScript ",[19,24,25],{},"axios",", Python ",[19,28,29],{},"requests",", PHP cURL, Ruby ",[19,32,33],{},"net\u002Fhttp",", Go ",[19,36,33],{},", Java 11 ",[19,39,40],{},"HttpClient",", C# ",[19,43,40],{},", HTTPie, Wget, or a normalized curl. The shell command is tokenized with proper quoting rules — single quotes, double quotes, backslash escapes, ",[19,46,47],{},"$'...'"," ANSI-C quoting, and backslash line continuations all work — then mapped to the target language with idiomatic syntax.",[10,50,52],{"id":51},"what-gets-recognized","What gets recognized",[15,54,55,56,59,60,63,64,59,67,59,70,59,73,59,76,79,80,83,84,87,88,91,92,95,96,99,100,103,104,107,108,111,112,115,116,118,119,121,122,125],{},"Methods and headers (",[19,57,58],{},"-X",", ",[19,61,62],{},"-H","), bodies (",[19,65,66],{},"-d",[19,68,69],{},"--data-raw",[19,71,72],{},"--data-binary",[19,74,75],{},"--data-urlencode",[19,77,78],{},"-F","), basic auth (",[19,81,82],{},"-u",", converted per language), cookies (",[19,85,86],{},"-b","), user agent (",[19,89,90],{},"-A","), referer (",[19,93,94],{},"-e","), HEAD mode (",[19,97,98],{},"-I","), query reattachment (",[19,101,102],{},"-G","), redirects (",[19,105,106],{},"-L","), insecure TLS (",[19,109,110],{},"-k",", mapped to each language's skip-verification idiom), and ",[19,113,114],{},"--compressed",". Method is inferred when omitted: ",[19,117,66],{}," means POST, ",[19,120,98],{}," means HEAD. When curl bodies are aggregated, JSON-looking payloads get the right ",[19,123,124],{},"Content-Type"," automatically.",[15,127,128],{},"Flags the converter does not support (proxies, config files, certificates) are never silently dropped — they are listed in a warning line above the output.",[10,130,132],{"id":131},"output","Output",[15,134,135,136,139],{},"The header strip shows a parsed summary (",[19,137,138],{},"POST https:\u002F\u002Fapi… · 2 headers · json",") so you can confirm the read. Output is live, editable history is kept in the tab via Use as input, and Copy\u002FDownload follow the usual result actions.",[15,141,142],{},"Parsing happens entirely in your browser; nothing is sent anywhere.",{"title":144,"searchDepth":145,"depth":145,"links":146},"",2,[147,148,149],{"id":12,"depth":145,"text":13},{"id":51,"depth":145,"text":52},{"id":131,"depth":145,"text":132},"Convert curl commands to fetch, axios, Python requests, or Go. Shell tokenizing and parsing run locally in your browser.","md","en",{},true,"\u002Ftools\u002Fen\u002Fcurl-converter",{"title":5,"description":150},"tools\u002Fen\u002Fcurl-converter","curl-converter","8BLRyPTz00fNlNkyKCWLXgoFnV5gg_Mt05IyxstrT0k",1792391417129]