A
A
awerkiler2018-06-28 15:36:49
linux
awerkiler, 2018-06-28 15:36:49

Why doesn't Post form requests.post Python work?

import requests
res = requests.post("https://www.999dice.com/api/web.aspx",data = {'a','GetCurrencies'})

those (res = <Response [200]>) don't work.
However
wget --post-data 'a=GetCurrencies' https://www.999dice.com/api/web.aspx

works.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
awerkiler, 2018-06-28
@awerkiler

Everything was decided.
It turns out that a really correct response was returned to the request, but I was not accessing it correctly.
res.json() is the right way

D
Dmitry Entelis, 2014-10-18
@Urukhayy

imho the simplest solution is:
1) Make yourself a separate domain from which you will send mailing lists, notifications, etc.
2) Connect it to pdo.yandex.ru , create a mailbox there from which the mailing will go.
3) Additionally, connect it to https://postmaster.yandex.ru/
4) Configure DKIM and SPF records help.yandex.ru/postoffice/security.xml
5) Use any php solution that can send mail via smtp (for example, swiftmailer )
In principle, instead of Yandex, you can use any mail you like.

G
Glueon, 2014-10-18
@Glueon

Form the correct headers and pass them to the mail command.

I
Ivan, 2014-10-18
@0neS

Better yet, forget about mail() and choose the alternative .

D
Dmitry Skogorev, 2014-10-18
@EnterSandman

What does it mean from the invented
PTR is registered?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question