This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jaredallard's profile picture

Use of a Network Proxy

Started by jaredallard, 26 December 2014 - 06:13 AM
jaredallard #1
Posted 26 December 2014 - 07:13 AM
Now, the title is slightly misleading– but I couldn't think of a better one.

Basically, what would be the use of a Man-In-Middle sort of proxy for CC Network traffic, that would allow recieveing/sending headers in the form of the request body.

Ultimately, is their a *need* for a public routing system like that?
Bomb Bloke #2
Posted 26 December 2014 - 09:02 AM
We're talking in-game CC traffic, yes? I don't see a need, nor do I think it likely anyone will ever build a network complex enough that such a need might ever arise.

That said, some things are worth doing purely for the sake of doing them - less about the destination, more about the journey. If you have a project in mind that you think will be fun to do, go for it. Don't factor in whether or not other people will make use of it.
Lyqyd #3
Posted 26 December 2014 - 03:22 PM
Well, I'm not sure if it's quite what you're trying to describe with all this "man-in-the-middle" (usually an attack phrase) and "headers in the form the request body" talk, but there are networking solutions like LyqydNet that aim to provide functionality above and beyond what Rednet itself can do.
jaredallard #4
Posted 26 December 2014 - 06:00 PM
We're talking in-game CC traffic, yes? I don't see a need, nor do I think it likely anyone will ever build a network complex enough that such a need might ever arise.

That said, some things are worth doing purely for the sake of doing them - less about the destination, more about the journey. If you have a project in mind that you think will be fun to do, go for it. Don't factor in whether or not other people will make use of it.

Well, I'm not sure if it's quite what you're trying to describe with all this "man-in-the-middle" (usually an attack phrase) and "headers in the form the request body" talk, but there are networking solutions like LyqydNet that aim to provide functionality above and beyond what Rednet itself can do.

I mean with the outside world, like allowing headers to be receiced and sent in a wway computercraft could handle them. This would allow OAuth too be used in game.
Lyqyd #5
Posted 26 December 2014 - 08:00 PM
ComputerCraft's http API can already manipulate headers.
Engineer #6
Posted 26 December 2014 - 09:33 PM
ComputerCraft's http API can already manipulate headers.
Yet you cannot receive headers
Lyqyd #7
Posted 26 December 2014 - 09:38 PM
Ah, if the wiki is entirely up to date, I suppose I was mistaken. I was under the impression that a method had been added to the handle returned with the http_success event that gave the header, not just one for the response code.
jaredallard #8
Posted 27 December 2014 - 04:18 AM
Ah, if the wiki is entirely up to date, I suppose I was mistaken. I was under the impression that a method had been added to the handle returned with the http_success event that gave the header, not just one for the response code.

Yea, sadly you cannot recieve them which is the main issue.