D
D
Dmitry Demin2014-10-11 11:50:53
Computer networks
Dmitry Demin, 2014-10-11 11:50:53

What is special about wget requests?

Hello. There was a task to replace the use of wget. I won't go into details, BUT! I have a situation where one of the third-party services does not respond correctly to requests.
When I try to make a GET request to a specific address, I get a redirect to the html page of this service. In the case of wget, this is not observed, the file is downloaded stably at the same URL.
Tell me, good people, what kind of things are these.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
throughtheether, 2014-10-11
@keksmen

When I try to make a GET request to a specific address, I get a redirect to the html page of this service. In the case of wget, this is not observed, the file is downloaded stably at the same URL.
Compare request headers, specifically User-agent .

A
Andrew, 2014-10-11
@OLS

With such a small amount of introductory information, it will be problematic to tell you ...
All the same, maybe you can post a dump of the headers of both requests (sniffer or proxy)?

A
Alexander, 2014-10-12
@daapp

wget has the -d switch - it will tell you what and how wget does, very useful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question