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

Submitter:  jidanni
Submitted:  Tue 31 Mar 2015 04:06:57 AM UTC
   
 
Category:  Testing Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

  Spam posted by _341592
  Spam posted by _341592
  Spam posted by _341592
  Spam posted by _341264
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>
Group administrator
Wed 01 Apr 2015 04:23:39 AM UTC, comment #6: 

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

jidanni
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...

jidanni
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.

Anonymous
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>
Group 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.

jidanni
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?

jidanni
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.





jidanni

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by darnir (Posted a comment)
  • -email is unavailable- added by rockdaboot (Posted a comment)
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-14 ineiev Attached File#54477 Removed
    2023-03-14 ineiev Carbon-CopyRemoved 341264 -
    2023-03-14 ineiev Carbon-CopyRemoved 341592 -
    2023-03-13 _341592 Attached File- Added Main.txt, #54477

    Back to the top

    Powered by Savane 3.13-df36.
    Corresponding source code