WebCloner now supports importing curl commands directly from your browser's DevTools, in addition to fetch requests!
- Open DevTools (F12)
- Go to Network tab
- Find your request
- Right-click → Copy → Copy as cURL (or Copy as cURL (bash))
- Use with WebCloner
# Save curl command to file
cat > request.txt << 'EOF'
curl 'https://example.com' \
-H 'cookie: session=abc123; user_id=456' \
-H 'user-agent: Mozilla/5.0...'
EOF
# Clone with curl command
webcloner-js --fetch-file ./request.txt -o ./outputOr inline:
webcloner-js --fetch "curl 'https://example.com' -H 'cookie: session=abc'" -o ./output- Open WebCloner GUI
- Click "Advanced Settings"
- Paste your curl command into "Fetch Request or Curl Command" field
- Click "Parse Request"
- All fields auto-populate
- Click "Start Cloning"
curl 'https://jp.globalbridgeconsultingsas.com/' \
-H 'accept: text/html,application/xhtml+xml' \
-H 'accept-language: ja,en-US;q=0.9' \
-b 'PHPSESSID=96c6a187abc1f5057af8b51e4122f946; _cid=cccd6a960ee241dc859d855808f87a00' \
-H 'user-agent: Mozilla/5.0...' \
--data-raw 'key=value'Extracted:
- ✅ URL:
https://jp.globalbridgeconsultingsas.com/ - ✅ Headers:
accept,accept-language,user-agent, etc. - ✅ Cookies:
PHPSESSID,_cid(from-bflag) - ✅ Method:
POST(auto-detected from--data-raw) - ✅ POST Data:
key=value
| Flag | Description | Supported |
|---|---|---|
-H or --header |
Custom headers | ✅ Yes |
-b or --cookie |
Cookies | ✅ Yes |
-X or --request |
HTTP method | ✅ Yes |
--data or --data-raw |
POST data | ✅ Yes |
-A or --user-agent |
User agent | -H instead |
--compressed |
Compression |
Your curl command:
curl 'https://jp.globalbridgeconsultingsas.com/' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9' \
-H 'accept-language: ja,en-US;q=0.9,en;q=0.8' \
-H 'cache-control: max-age=0' \
-H 'content-type: application/x-www-form-urlencoded' \
-b 'PHPSESSID=96c6a187abc1f5057af8b51e4122f946; f=bW9uZXlfMTc2Mzk4NjI2MV8zMTE=; _cid=cccd6a960ee241dc859d855808f87a00' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' \
--data-raw 'data=%7B%22mode%22%3A%22php%22...'Usage:
# Save to file
cat > jp-request.txt << 'EOF'
[paste your curl command here]
EOF
# Clone the site
webcloner-js --fetch-file ./jp-request.txt -o ./jp-site --depth 3What happens:
- ✅ Parses URL:
https://jp.globalbridgeconsultingsas.com/ - ✅ Extracts 3 cookies:
PHPSESSID,f,_cid - ✅ Extracts 15+ headers
- ✅ Detects POST method
- ✅ Includes POST data
- ✅ Starts cloning with all context
WebCloner automatically detects whether you're pasting:
- Curl command (starts with
curl) - Fetch request (starts with
fetch()
No need to specify which format you're using!
curl 'https://example.com' \
-b 'session=abc123; user_id=456'Extracts:
session=abc123user_id=456
curl 'https://example.com' \
-H 'cookie: session=abc123; user_id=456'Also extracts:
session=abc123user_id=456
Both methods work!
curl 'https://example.com' \
--data-raw 'username=test&password=secret'- Method:
POST(auto-detected) - Body:
username=test&password=secret
curl 'https://example.com' \
-X POST \
--data 'key=value'- Method:
POST(explicit) - Body:
key=value
- Copy the complete curl command (all lines)
- Include all
-Hheaders for best results - Use
-bfor cookies or include in-H 'cookie: ...' - Save complex commands to files for reuse
- Remove the backslashes (
\) from multi-line commands - Edit the curl command manually (paste as-is)
- Worry about line breaks (parser handles them)
Cause: URL not in quotes or curl command incomplete
Solution:
# ✅ Good
curl 'https://example.com' -H 'header: value'
# ❌ Bad
curl https://example.com -H 'header: value'Cause: Cookie format might be incorrect
Solution: Check that cookies are in one of these formats:
# Format 1: -b flag
-b 'cookie1=value1; cookie2=value2'
# Format 2: -H header
-H 'cookie: cookie1=value1; cookie2=value2'Cause: POST data might need URL encoding
Solution: Your browser already encodes it correctly when you copy as curl. Just paste as-is!
| Feature | Fetch Request | Curl Command |
|---|---|---|
| Source | Copy as fetch | Copy as cURL |
| Format | JavaScript | Shell command |
| Headers | In headers object |
Multiple -H flags |
| Cookies | In cookie header |
-b flag or -H |
| Method | In method field |
-X flag or auto-detect |
| POST Data | In body |
--data or --data-raw |
Both work perfectly with WebCloner!
# Curl + proxy + custom depth
webcloner-js --fetch-file ./request.txt \
--proxy-host proxy.example.com \
--proxy-port 8080 \
--depth 5 \
-o ./output
# Curl + additional cookies
webcloner-js --fetch-file ./request.txt \
--cookie "extra=value" \
-o ./outputClone different pages with different contexts:
# Page 1 with auth
webcloner-js --fetch-file ./auth-request.txt -o ./page1
# Page 2 with different session
webcloner-js --fetch-file ./session2-request.txt -o ./page2- Curl commands contain sensitive cookies and tokens
- Don't share curl commands publicly
- Don't commit curl commands to git
- Cookies expire - get fresh commands before cloning
- FETCH_REQUEST_IMPORT.md - Fetch request support
- COOKIE_SUPPORT.md - Cookie management
- README.md - General usage
Curl support makes it incredibly easy to clone authenticated websites:
- Copy curl command from browser DevTools
- Paste into WebCloner (CLI or GUI)
- Clone with all cookies, headers, and POST data automatically applied
No manual extraction, no configuration - just copy and paste! 🚀
Your specific curl command is ready to use:
# Save your curl to file
cat > jp-request.txt << 'EOF'
curl 'https://jp.globalbridgeconsultingsas.com/' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9' \
-H 'accept-language: ja,en-US;q=0.9,en;q=0.8' \
-b 'PHPSESSID=96c6a187abc1f5057af8b51e4122f946; f=bW9uZXlfMTc2Mzk4NjI2MV8zMTE=; _cid=cccd6a960ee241dc859d855808f87a00' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' \
--data-raw 'data=%7B%22mode%22%3A%22php%22...'
EOF
# Clone it!
webcloner-js --fetch-file ./jp-request.txt -o ./jp-site --depth 3It will work perfectly! ✨