Need help with post requests

nitin2003

Client
Регистрация
18.09.2012
Сообщения
195
Благодарностей
11
Баллы
18
There is a plugin by Avast named webrep.
It is used by people to vote a site as bad, good average etc. This plugin sends the response back to Avast servers as a post request. I tracked the request sent by this plugin using few tools.

This is the text it returned:

PUT http://api.webrep.avast.com/v1/vote/uri/ HTTP/1.1
Host: api.webrep.avast.com
Connection: keep-alive
Content-Length: 179
Accept: text/plain, */*; q=0.01
Origin: chrome-extension://gomekmidlodglbbmalcneegieacbdmki
User-Agent: Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
Content-Type: application/json;
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Cookie: x-otid=wr>wr>>; s_sq=%5B%5BB%5D%5D; s_vi=[CS]v1|28E22E1D0531284E-60000103C01B4215[CE]; s_nr2=; s_nr2=

{"uri":"blackhatworld.com","vote":{"rating":"100","flags":{"shopping":0,"social":0,"news":0,"it":0,"corporate":0,"pornography":0,"violence":0,"gambling":0,"drugs":0,"illegal":0}}}


PUT http://api.webrep.avast.com/v1/vote/uri/ HTTP/1.1
Host: api.webrep.avast.com
Connection: keep-alive
Content-Length: 173
Accept: text/plain, */*; q=0.01
Origin: chrome-extension://gomekmidlodglbbmalcneegieacbdmki
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
Content-Type: application/json;
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Cookie: userid=b46fc807e8774b1f9ad1feeef926c013

{"uri":"coolmath.com","vote":{"rating":"75","flags":{"shopping":0,"social":0,"news":1,"it":0,"corporate":0,"pornography":0,"violence":0,"gambling":0,"drugs":0,"illegal":0}}}

So, these are 2 different requests it sent. I want to emulate the same with different user agents and proxies etc.


My question is that the text shown above should be added to Data field in HTTP Post element?
What will be the data type? urlencoded or multipart?

What will be the encoding type?

Any help would be appreciated.

Thanks
 

nitin2003

Client
Регистрация
18.09.2012
Сообщения
195
Благодарностей
11
Баллы
18

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
Hey,

1. It is PUT request, not POST. ZennoPoster doesn't support PUT request, but you can send it via c# action
2. The main problem gonna be with cookies. As far as you need different users you need different cookies being generated. So install this plugin to different real or virtuals machines in order to generate them properly.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)