Skip to content

Magenaut

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

http

Is there an easy way to request a URL in python and NOT follow redirects?

August 17, 2022 by Magenaut

Looking at the source of urllib2 it looks like the easiest way to do it would be to subclass HTTPRedirectHandler and then use build_opener to override the default HTTPRedirectHandler, but this seems like a lot of (relatively complicated) work to do what seems like it should be pretty simple.

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

Python-Requests close http connection

August 17, 2022 by Magenaut

I was wondering, how do you close a connection with Requests (python-requests.org)?

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

How to specify an authenticated proxy for a python http connection?

August 16, 2022 by Magenaut

What’s the best way to specify a proxy with username and password for an http connection in python?

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

Python: HTTP Post a large file with streaming

August 16, 2022 by Magenaut

I’m uploading potentially large files to a web server. Currently I’m doing this:

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

Is there any way to do HTTP PUT in python

August 16, 2022 by Magenaut

I need to upload some data to a server using HTTP PUT in python. From my brief reading of the urllib2 docs, it only does HTTP POST. Is there any way to do an HTTP PUT in python?

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

Python urllib2 with keep alive

August 16, 2022 by Magenaut

How can I make a “keep alive” HTTP request using Python’s urllib2?

Categories Python, Q&A Tags http, keep-alive, python, urllib2 Leave a comment

How do I set headers using python’s urllib?

August 16, 2022 by Magenaut

I am pretty new to python’s urllib. What I need to do is set a custom header for the request being sent to the server. Specifically, I need to set the Content-type and Authorizations headers. I have looked into the python documentation, but I haven’t been able to find it.

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

Python ‘requests’ library – define specific DNS?

August 15, 2022 by Magenaut

In my project I’m handling all HTTP requests with python requests library.

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

Multithreaded web server in python

August 14, 2022 by Magenaut

I’m trying to create multithreaded web server in python, but it only responds to one request at a time and I can’t figure out why. Can you help me, please?

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

How to download a file using python in a ‘smarter’ way?

August 14, 2022 by Magenaut

I need to download several files via http in Python.

Categories Python, Q&A Tags download, http, python Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … 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