Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6625563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:47:22+00:00 2026-05-25T21:47:22+00:00

I was deubgging some http requests and found that I can grab request headers

  • 0

I was deubgging some http requests and found that I can grab request headers in this type of format:

GET /download?123456:75b3c682a7c4db4cea19641b33bec446/document.docx HTTP/1.1
Host: www.site.com
User-Agent: Mozilla/5.0 Gecko/2010 Firefox/5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Referer: http://www.site.com/dc/517870b8cc7
Cookie: lang=us; reg=1787081http%3A%2F%2Fwww.site.com%2Fdc%2F517870b8cc7

Is it possible or is there an easy way to reconstruct that request using wget or curl (or another CLI tool?)

From reading the wget manual page I know I can set several of these things individually, but is there an easier way to send a request with all these variables from the command line?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:47:23+00:00Added an answer on May 25, 2026 at 9:47 pm

    Yes, you just need to combine all the headers using --header

    wget --header="User-Agent: Mozilla/5.0 Gecko/2010 Firefox/5" \
    --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
    --header="Accept-Language: en-us,en;q=0.5" \
    --header="Accept-Encoding: gzip, deflate"
    --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" \
    --header="Cookie: lang=us; reg=1787081http%3A%2F%2Fwww.site.com%2Fdc%2F517870b8cc7" \
    --referer=http://www.site.com/dc/517870b8cc7
    http://www.site.com/download?123456:75b3c682a7c4db4cea19641b33bec446/document.docx
    

    If you are trying to do some illegal download,
    it might fail,
    is depends on how hosting URL being programmed

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm debugging some hidden http posts on my website. can you refer a free
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
After correcting some other bugs on the application I found out that one page
I'm developing a Firefox extension that uses an ajax-request to retrieve information. This is
I've built a web service using Django-Piston that allows for POST and GET requests.
This is the page, its a wordpress powered site: http://bit.ly/9oJXWV You select some value,
Debugging some finance-related SQL code found a strange issue with numeric(24,8) mathematics precision. Running
In Eclipse (Ganymede) I'm debugging some code that uses Apache Commons HttpClient and would
I'm very busy write now debugging some code, so I can't cookup a complete
I'm working on a solution to redirect http requests from my browser to another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.