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

  • Home
  • SEARCH
  • 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 998463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:11:54+00:00 2026-05-16T07:11:54+00:00

I don’t know how to automatically retrieve and save an image to my hard

  • 0

I don’t know how to automatically retrieve and save an image to my hard disk given this html source:

<img src="https://someRemoteServer/servlet/GetItemServlet?ts=32352.3&itemtype=blabla">

I tried wget, but it only saves the request GetItemServlet itself to my hard disk.

I want to iterate through 700 images on the remote Server (which I do not own nor have backend access to) and save them all to my hard disk with an unique identifier.

Edit: The output of wget:

HTTP Request sent, waiting for Response... 200 OK
Länge: 0 [text/plain]
Save in »»GetItemServlet?ts=32352.3««.

The file itself is 0KB in size.

When wget is resolving the many parameters it prints:

[29] 48426
[30] 48427
--2010-08-16 21:52:02--  https://media.myRemoteServer.com/servlet/GetItemServlet?ts=56555
-bash: 1281978458512=1: command not found

but then continues

[2]   Done                    itemtype_text=[Keine+Auswahl]
..
[29]-  Done                    id=9
[30]+  Done                    res=2

Edit2:

After escaping ampersand and question marks wget does better and throws back a totally different error message:

File name too long

and

Cannot write to >GetItemServlet?ts=32352.3&itemtype=blabla< (Unknown error: 0) 

Edit3: Neverending Story. This should be at superuser anyway. I shortened the URL name and it runs through and indeed saves a file now. In this file which seems to be HTML it says my session run out and I need to logon. I did provide username and password with wget though. But when logging into that site manually via Browser you have to do it through a forms-login.

  • 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-16T07:11:55+00:00Added an answer on May 16, 2026 at 7:11 am

    It should work just fine. Maybe leechers are autodetected and returned a different response. Since you didn’t tell about the actual response in detail, it’s as far a bit stabbing in the dark. Try supplying a legitimate useragent, or maintaining the session, or using a bit more smart 3rd party leeching tool.

    That said, do you realize that most of the webmasters don’t really appreciate those kind of actions? Network bandwidth and CPU load are not free.


    Update as per your update: the name seems to be too long to be a legitimate save-as filename, also the ? is an illegal character in filenames (at least, in Windows). That might be the root cause of this all. I don’t do wget, but you should at least specify a custom output file name. It’ll be explained in its manual. This question is now probably a better fit for http://superuser.com.

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

Sidebar

Related Questions

I don't know if anyone has seen this issue before but I'm just stumped.
I don't know if this is possible. I display a table of results and
I don't know if i am doing it right, this is what I got:
I don't know how to ask this question properly. I think the title is
I don't know if this is the right place to ask about that, but
I don't know if this is possible, but it would simplify my calculations to
I don't know if the Title of this post makes sense, but here's a
I don't know when to add to a dataset a tableadapter or a query
I don't understand where the extra bits are coming from in this article about
I don't want PHP errors to display /html, but I want them to display

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.