R
R
Rusl Crow2018-05-09 18:19:27
linux
Rusl Crow, 2018-05-09 18:19:27

How to process url like in browser using curl?

How to process url like in browser using curl? To use in a bash script.
https://xxx.site/wp-admin/admin-ajax.php?action=pa...
Tried post get options.
wget doesn't work either.
Maybe with a php script?
The link only works in the browser.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
planc, 2018-05-09
@rasl2017

in any browser there is dev tools / web inspector, there is a network tab and right-click on the request - copy as curl

screen
5af353deed604456665208.png

Y
Yan-s, 2018-05-09
@Yan-s

And what doesn't work? Probably requires cookies or some special headers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question