D
D
Dmitry2016-07-12 04:29:58
PHP
Dmitry, 2016-07-12 04:29:58

How to execute the request https://sm.megafon.ru/sm/client/routing/[email protected]&password=aaaBBB&routing=XXX via cron?

Good afternoon.

Actually, I want to execute the request https://sm.megafon.ru/sm/client/routing/set?login=... via cron.
This is a change in the call forwarding status for Multifon from Megafon. (at the end of the article https://geektimes.ru/post/66023/ )

In the browser, when you click on the link, it works. Curl, wget, GET googled what I found from the options, it does not work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2016-07-12
@zmeyjr

I found it, I think it can be called a crutch, but it works:
elinks -source " https://sm.megafon.ru/sm/client/routing/set?login=... "

S
sbh, 2016-07-12
@sbh

I will not offer a working option, but often the problem is the lack of cookies when requested.
Do you have authorization in the script to receive cookies?
Do you use them when asked?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question