Вверх ↑
Ответов: 411
Рейтинг: 13
#1: 2019-09-10 07:42:31 ЛС | профиль | цитата
Как с помощью HTTPClient post запросом отправить вот такие данные {"filters":{"ageFrom":null,"ageTo":null,"countries":[],"withPhoto":false,"moreChildren":false},"limit":15,"page":2} браузер так отправляет, смотрел через Fiddler. Не получается отправить, код ошибки 12175

Вот так отправляет IE

POST https://api.prime.date/account/search HTTP/1.1
Content-Type: application/json
Accept: application/json
Referer: https://prime.date/search-users
Accept-Language: ru-RU
Origin: https://prime.date
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Host: api.prime.date
Content-Length: 115
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: тут куки

{"filters":{"ageFrom":null,"ageTo":null,"countries":[],"withPhoto":false,"moreChildren":false},"limit":15,"page":2}


Add(Button,3508721,119,364)
{
Left=165
Top=165
link(onClick,5636246:doEvent1,[])
}
Add(Clipboard,8089563,280,378)
{
}
Add(HTTPClient,7072785,224,371)
{
URL="https://api.prime.date/account/search"
Method=1
UserAgent="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
EncType=2
Point(Headers)
Point(PostData)
link(onFinish,8089563:doPutText,[])
link(Headers,12282822:Cookies,[])
link(PostData,3631094:Text,[(251,352)(279,352)])
}
Add(CookieManager,12282822,238,308)
{
Point(doGetIECookies)
link(URL,14011377:Text,[])
}
Add(Hub,5636246,175,364)
{
link(onEvent1,12282822:doGetIECookies,[(210,370)(210,342)])
link(onEvent2,7072785:doLoadString,[])
}
Add(VisualStrings,3631094,273,315)
{
Lines=#115:{"filters":{"ageFrom":null,"ageTo":null,"countries":[],"withPhoto":false,"moreChildren":false},"limit":15,"page":2}|
}
Add(VisualStrings,14011377,245,280)
{
Lines=#18:https://prime.date|
}

карма: 4

0