Skip to content

Instantly share code, notes, and snippets.

@davidwtbuxton
Created June 18, 2018 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidwtbuxton/639b099ad1c7c394eea7a47318241593 to your computer and use it in GitHub Desktop.
Save davidwtbuxton/639b099ad1c7c394eea7a47318241593 to your computer and use it in GitHub Desktop.
Accessing Daily Mail comments
$ curl -i http://www.dailymail.co.uk/reader-comments/p/asset/readcomments/5774717?max=1&order=desc
HTTP/1.1 403 Forbidden
Server: AkamaiGHost
Mime-Version: 1.0
Content-Type: text/html
Content-Length: 341
Expires: Mon, 18 Jun 2018 18:00:23 GMT
Date: Mon, 18 Jun 2018 18:00:23 GMT
Connection: keep-alive
Vary: User-Agent
<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>
You don't have permission to access "http&#58;&#47;&#47;www&#46;dailymail&#46;co&#46;uk&#47;reader&#45;comments&#47;p&#47;asset&#47;readcomments&#47;5774717&#63;" on this server.<P>
Reference&#32;&#35;18&#46;a83819b8&#46;1529344823&#46;564c2ab
</BODY>
</HTML>
$ curl -H 'User-Agent: Mozilla/5.0' -i http://www.dailymail.co.uk/reader-comments/p/asset/readcomments/5774717?max=1&order=desc
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
x-storage: readercomments
x-rs-ben: clj-rc-web-a1.hsk.mol.dmgt.net:8081
restarts: 0
X-rs-ops: varnish-rc-b1-fe:6081
x-rs-time: Mon, 18 Jun 2018 17-56-54 GMT
Accept-Ranges: bytes
x-graced: false
Content-Length: 916
Date: Mon, 18 Jun 2018 18:01:28 GMT
Connection: keep-alive
Vary: User-Agent
{"status":"success","code":"200","payload":{"parentCommentsCount":846,"offset":"0","max":1,"page":[{"userAlias":"lonehelmet","assetHeadline":"Revealed: How letting an ambulance past can land motorists with a fine of up to £1,000 - and how to avoid it ","userLocation":"Bridlington, United Kingdom","formattedDateAndTime":"3 weeks ago","assetId":5774717,"replies":{"totalCount":0,"comments":[]},"voteCount":7,"id":314436455,"userIdentifier":"1494862196581444","hasProfilePicture":false,"voteRating":5,"dateCreated":"2018-05-28T17:41:49.248Z","assetCommentCount":1486,"assetUrl":"/news/article-5774717/Letting-ambulance-police-car-pass-traffic-mean-1-000-fine.html","message":"Motorists in the UK are now like cringing, whipped dogs beneath the gaze of Big Brother."}],"assetId":"","assetStatusId":null,"isOldArticle":true,"shoutDisabledChannels":"{\"disabledMolShout\":false,\"disabledChannels\":[]}","total":1486}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment