Skip to content

Commit 700999e

Browse files
committed
copy as curl: with Safari
1 parent 6dd9273 commit 700999e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

safari-copy-as-curl.png

153 KB
Loading

usingcurl-copyas.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ browser is one of the more common requests and areas people ask for help
55
about.
66

77
How do you get a curl command line to get a resource, just like the browser
8-
would get it, nice and easy? Both Chrome and Firefox have provided this
9-
feature for quite some time already!
8+
would get it, nice and easy? Chrome, Firefox and Safari all have this feature.
109

1110
## From Firefox
1211

@@ -32,6 +31,19 @@ Chromium installations.
3231

3332
![copy as curl with Chrome](chrome-copy-as-curl.png)
3433

34+
## From Safari
35+
36+
In Safari, the "development" menu isn't visible until you go into
37+
preferences->Advanced and enable it. But once you've done that, you can select
38+
"Show web inspector" in that development menu and get to see a new console pop
39+
up that is similar to the development tools of Firefox and Chrome.
40+
41+
Select the network tab, reload the web page and then you can right click the
42+
particular resources that you want to fetch with curl, as if you did it with
43+
Safari..
44+
45+
![copy as curl with Safari](safari-copy-as-curl.png)
46+
3547
## On Firefox, without using the devtools
3648

3749
If this is something you would like to get done more often, you probably find

0 commit comments

Comments
 (0)