bugGNU Wget - Bugs: bug #44674, Add an option that will send the...


bug #44674: Add an option that will send the HTTP request to stderr or a file

Submitted by:  jidanni
Submitted on:  Tue 31 Mar 2015 04:06:57 AM UTC  
Category: TestingSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: NoneOperating System: None
Reproducibility: NoneFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sat 15 Aug 2015 07:37:38 AM UTC, comment #7:

Maybe we can implement a --dry-run option to allow the user to see how the request would look like without actually sending it.

It would still require the --debug option to see the actual request.

Darshit Shah <darnir>
Project Administrator
Wed 01 Apr 2015 04:23:39 AM UTC, comment #6:

Also --debug doesn't show full FORM bodies.

Tue 31 Mar 2015 11:47:49 PM UTC, comment #5:

Tim: OK please somebody be sure that example is given nearby the --debug
option section of the man page.

Also it would be good if there was a built-in way to do it in case it is
inconvenient to install other programs or do extra input output job
starting and waiting on a given system.

Anonymous: the --debug part of the man page doesn't say clearly what it
will give, also --debug might not be compiled in. And in fact --debug
gives more than just the request, and --debug needs one to attempt the
request without any "--dry-run" safety mechanism before going on to the net...

Tue 31 Mar 2015 10:07:03 PM UTC, comment #4:

You can use the --debug flag to show the HTTP request and response headers, including when the traffic is encrypted with SSL.

Tue 31 Mar 2015 07:40:14 AM UTC, comment #3:

Just open a second console and start
nc -l -p 8888

Start wget in your first console
http_proxy=localhost:8888 wget http://www.example.com

nc will now dump everything that Wget sends. You could even generate an answer (e.g. with copy & paste).

Wget just adds a Proxy-Connection header which will not be sent on non-proxy connections.

Tim Ruehsen <rockdaboot>
Project Administrator
Tue 31 Mar 2015 04:14:39 AM UTC, comment #2:

OK one could send to http://example.net/ recording with tcpflow... but still one shouldn't need to do that.

Tue 31 Mar 2015 04:11:35 AM UTC, comment #1:

Sure one could use tcpflow to see what is being sent, but what if it is an https address, and what if we want to see it before we send it?

Tue 31 Mar 2015 04:06:57 AM UTC, original submission:

Add an option that will send the HTTP request to stderr or a file, and not over the network.

That way one could see what wget will send without sending it.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by darnir (Posted a comment)
  • -unavailable- added by rockdaboot (Posted a comment)
  • -unavailable- added by jidanni (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1