samedi 4 août 2018

Simulate https web request

I need to simulate http web request from browser into C# winforms. is there anyone can help me with that.

This is the snippet code from Chrome Inspector:

Request URL: https://api.twitter.com/1.1/friendships/create.json
Request Method: OPTIONS
Status Code: 200 
Remote Address: 104.244.42.194:443
Referrer Policy: no-referrer-when-downgrade

access-control-allow-credentials: true
access-control-allow-headers: Authorization, Cache-Control, Content-Type, Dtab-Local, If-Modified-Since, LivePipeline-Session, Server, X-Act-As-User-Id, X-B3-Flags, X-Contribute-To-User-Id, X-CSRF-Token, X-Guest-Token, X-TD-Iff-Mtime, X-TD-Mtime-Check, X-Twitter-Active-User, X-Twitter-Auth-Type, X-Twitter-Client, X-Twitter-Client-Version, X-Twitter-Polling, X-Twitter-UTCOffset, X-Twitter-Client-Language
access-control-allow-methods: GET, POST, HEAD, PUT, DELETE
access-control-allow-origin: https://twitter.com
access-control-max-age: 1728000
content-length: 0
date: Sat, 04 Aug 2018 21:24:59 GMT
server: tsa_f
status: 200
vary: Origin
x-connection-hash: 7fba3acc1d4d41e6e612aeac51a03f68
:authority: api.twitter.com
:method: OPTIONS
:path: /1.1/friendships/create.json
:scheme: https
accept: */*
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9
access-control-request-headers: authorization,x-csrf-token,x-twitter-active-user,x-twitter-auth-type
access-control-request-method: POST
origin: https://twitter.com
user-agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Mobile Safari/537.36




Aucun commentaire:

Enregistrer un commentaire