SILENT KILLERPanel

Current Path: > > opt > hc_python > > share > > > > doc > pycurl > > examples > quickstart


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.8
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/hc_python//share////doc/pycurl//examples/quickstart

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
file_upload_buffer.py File 311 bytes April 04 2025 08:08:45.
file_upload_real.py File 291 bytes April 04 2025 08:08:45.
file_upload_real_fancy.py File 483 bytes April 04 2025 08:08:45.
follow_redirect.py File 250 bytes April 04 2025 08:08:45.
form_post.py File 564 bytes April 04 2025 08:08:45.
get.py File 583 bytes April 04 2025 08:08:45.
get_python2.py File 447 bytes April 04 2025 08:08:45.
get_python2_https.py File 498 bytes April 04 2025 08:08:45.
get_python3.py File 403 bytes April 04 2025 08:08:45.
get_python3_https.py File 454 bytes April 04 2025 08:08:45.
put_buffer.py File 472 bytes April 04 2025 08:08:45.
put_file.py File 300 bytes April 04 2025 08:08:45.
response_headers.py File 2097 bytes April 04 2025 08:08:45.
response_info.py File 498 bytes April 04 2025 08:08:45.
write_file.py File 357 bytes April 04 2025 08:08:45.

Reading File: //opt/hc_python//share////doc/pycurl//examples/quickstart/write_file.py

#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vi:ts=4:et

import pycurl

# As long as the file is opened in binary mode, both Python 2 and Python 3
# can write response body to it without decoding.
with open('out.html', 'wb') as f:
    c = pycurl.Curl()
    c.setopt(c.URL, 'http://pycurl.io/')
    c.setopt(c.WRITEDATA, f)
    c.perform()
    c.close()

SILENT KILLER Tool