Article View: rocksolid.nodes
Article #56Re: Flarum thread
From: anonymous
Date: Sun, 11 Aug 2019 11:29
Date: Sun, 11 Aug 2019 11:29
42 lines
2188 bytes
2188 bytes
>So would it be correct that the POST request can be to a php (or other
>file) on the same host, that can then communicate with the nntp server?
This is what I understood, yes.
>The POST request could contain each header line required, and a body?
>That would be easy to work with if received by a php file.
This is the structure, as published on the site that I linked:
{
"event": "new_submission",
"subject": {
"resource": "https://example.com/f/example/420/smoke-weed",
"id": 420,
"forum": "https://example.com/f/example",
"user": "https://example.com/user/emma",
"title": "Smoke weed!",
"body": "its good for your soul",
"url": "https://foo.example.com/",
"timestamp": "2018-04-20T06:09:00+00:00",
"locked": false,
"sticky": false,
"user_flag": "moderator",
"edited_at": "2018-06-09T04:21:09+00:00",
"moderated": false,
"comment_count": 0,
"upvotes": 0,
"downvotes": 0,
"thumbnail_1x": "https://example.com/very_long_image_url.jpg",
"thumbnail_2x": "https://example.com/very_long_image_url_2x.jpg"
}
}
I guess that is all you would need to pipe the message to inn2 (via php or
cgi). Really easy.
cheers
trw
Posted on def2
Technical Details
Message-ID:
<645537b52245df4b7e1d39286285b4aa$1@z5bqfv5v75kxy7pj.onion>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mailReferences:
<471f5788fb2cd384acc24becf7bf531b@def4> <7247ac8a4a93d0b155e5798cc5d2a002@def4> <a41fb6838f5fccdcfab4a8341bd6ad51$1@z5bqfv5v75kxy7pj.onion> <20190810175621.26e6d6cc@desktop14.dt>Show Full Headers
Complete Article Headers
Message-ID: <645537b52245df4b7e1d39286285b4aa$1@z5bqfv5v75kxy7pj.onion> Subject: Re: Flarum thread Date: Sun, 11 Aug 2019 11:29:07 +0000 From: anonymous@def2.anon (anonymous) References: <471f5788fb2cd384acc24becf7bf531b@def4> <7247ac8a4a93d0b155e5798cc5d2a002@def4> <a41fb6838f5fccdcfab4a8341bd6ad51$1@z5bqfv5v75kxy7pj.onion> <20190810175621.26e6d6cc@desktop14.dt> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mail Content-Transfer-Encoding: 8bit Organization: def2org X-Received-Body-Crc: 1960891270 Content-Type: text/plain; charset=utf-8; format=flowed Injection-Date: Sun, 11 Aug 2019 11:29:07 -0000 (UTC) X-Received-Bytes: 2350 Newsgroups: rocksolid.nodes Mime-Version: 1.0