Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

http

Simple URL GET/POST function in Python

August 14, 2022 by Magenaut

I can’t seem to Google it, but I want a function that does this:

Categories Python, Q&A Tags http, python Leave a comment

How to encode UTF8 filename for HTTP headers? (Python, Django)

August 14, 2022 by Magenaut

I have problem with HTTP headers, they’re encoded in ASCII and I want to provided a view for downloading files that names can be non ASCII.

Categories Python, Q&A Tags django, escaping, http, http-headers, python Leave a comment

Python urllib2 Progress Hook

August 13, 2022 by Magenaut

I am trying to create a download progress bar in python using the urllib2 http client. I’ve looked through the API (and on google) and it seems that urllib2 does not allow you to register progress hooks. However the older deprecated urllib does have this functionality.

Categories Python, Q&A Tags http, httpclient, progress-bar, python, urllib2 Leave a comment

In Python, how do I decode GZIP encoding?

August 13, 2022 by Magenaut

I downloaded a webpage in my python script.
In most cases, this works fine.

Categories Python, Q&A Tags ascii, encoding, http, python, text Leave a comment

Only download a part of the document using python requests

August 13, 2022 by Magenaut

I’m writing a web scraper using python-requests.

Categories Python, Q&A Tags http, python, python-requests Leave a comment

why is python string split() not splitting

August 13, 2022 by Magenaut

I have the following python code.

Categories Python, Q&A Tags http, python Leave a comment

Why am I getting this error in python ? (httplib)

August 13, 2022 by Magenaut

exception httplib.BadStatusLine: (exception http.client.BadStatusLine🙂

Categories Python, Q&A Tags http, python Leave a comment

Python urllib2.urlopen() is slow, need a better way to read several urls

August 13, 2022 by Magenaut

As the title suggests, I’m working on a site written in python and it makes several calls to the urllib2 module to read websites. I then parse them with BeautifulSoup.

Categories Python, Q&A Tags concurrency, http, python, urllib2 Leave a comment

Python send POST with header

August 13, 2022 by Magenaut

I try to build a python script who sends a POST with parameters for extracting the result.
With fiddler, I have extracted the post request who return that I want. The website uses https only.

Categories Python, Q&A Tags http, http-headers, post, python, request Leave a comment

Using Flask, how do I modify the Cache-Control header for ALL output?

August 12, 2022 by Magenaut

I tried using this

Categories Python, Q&A Tags flask, http, python Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 Page10 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress