Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

HttpClientMultipart

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

HttpClientMultipart

This package implement client to upload file using HTTP multipart

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

HttpClientMultipart

Description

This package implement client to upload file using HTTP multipart.

Requirements

This package require :

  • python3
  • python3 Standard Library

Installation

pip install HttpClientMultipart

Usages

Command line

HttpMultipart -h                                                                                             # Print help message
HttpMultipart --help                                                                                         # Print help message
HttpMultipart -u "http://example.com/post/file"
python3 -m HttpMultipart --url "http://example.com/post/file"                                                # Using module command line
python3 HttpMultipart.pyz -H "Referer:http://example.com/" "Cookie:S=123" -u "http://example.com/post/file"  # Using python executable file, add headers
HttpMultipart --add-headers "Referer:http://example.com/" "Cookie:S=123" -u "http://example.com/post/file"   # Add headers
HttpMultipart -p "submit:Upload" -u "http://example.com/post/file"                                           # Add simple field
HttpMultipart --add-parameters "submit:Upload" -u "http://example.com/post/file"                             # Add simple field
HttpMultipart -f "/home/user/test.csv" -u "http://example.com/post/file"                                     # Add file
HttpMultipart --files-path "/home/user/test.csv" -u "http://example.com/post/file"                           # Add file

Python script

from HttpClientMultipart import Multipart
from urllib.request import Request, urlopen

multipart = Multipart()

response = urlopen(
    Request("http://example.com/post/file",
        headers={'Content-Type': multipart.content_type},
        data=multipart.build_multipart([("SubmitButton", "Upload file")], [("file", "test.csv", "/home/user/test.csv")]),
    )
)

print(response.read())
  • Pypi
  • Github
  • Documentation
  • Python executable

License

Licensed under the GPL, version 3.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc