Skip to content

Instantly share code, notes, and snippets.

@greetclock
greetclock / app.js
Created December 15, 2020 14:03 — forked from ObjSal/app.js
Posting form data in 3 ways to a Node.js server without third-party libraries - application/json, application/x-www-form-urlencoded, and multipart/form-data
// Author: Salvador Guerrero
'use strict'
const fs = require('fs')
// Project modules
const { CreateServer } = require('./server')
const SecurityUtils = require('./security-utils')
import cookielib
import md5
import re
import sys
import urllib
import urllib2
def login(username, password, cookie_file):
'''login to otaku-streamers.com and save session cookies'''