[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Trying to pipe raw output sent into a localhost socket into

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 10
Thread images: 1

File: cap.png (24KB, 387x488px) Image search: [Google]
cap.png
24KB, 387x488px
Trying to pipe raw output sent into a localhost socket into a text file.
>picrelated is address + type of data i'm talking about.

How can I do this in windows?

Already tried
powershell -command "invoke-restmethod http://127.0.0.1:31001" > test.txt

and
powershell -command "(invoke-webrequest http://127.0.0.1:31001).Content" > test.txt


I'm a helpless powershell baby :c
>>
>>59148169
Aw shiet I made a new thread I thought I was in /sqt/.
Sorry /g/.
>>
This is the error it gives:
>invoke-webrequest : The server committed a protocol violation.
Section=ResponseStatusLine
At line:1 char:1
+ invoke-webrequest http://127.0.0.1:31001
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt
pWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
ll.Commands.InvokeWebRequestCommand
>>
Use Python.
>>
>>59148169
powershell curl http://127.0.0.1:31001 >test.txt

native .net function sucks.
>>
>>59149044
It times out fuck my life
>>
>>59149358
use --local-port option on curl with POST as -x
>>
>>59149358
remove the http:// because it redirects on port 80
>>
>>59149387
Sadly I'll have to be spoonfed until I get around this powershell hurdle.

powershell curl http://127.0.0.1:31001 >test.txt  -x  --local-port

Liek dis?

>>59149413
curl : The operation has timed out.
At line:1 char:1
+ curl 127.0.0.1:31001
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt
pWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
ll.Commands.InvokeWebRequestCommand
>error with http removed is basically the same
>>
>>59149437
powershell wget http://127.0.0.1:31001 -OutFile test.txt
Thread posts: 10
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.