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 7961847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:09:55+00:00 2026-06-04T05:09:55+00:00

I want to post a http document that is password protected. It has a

  • 0

I want to post a http document that is password protected.
It has a username and password login page before you can access the actual document.
I tried doing this

curl 
 -u username:password 
 "http://localhost:8983/solr/update/extract?literal.id=doc900&commit=true" 
 -F stream.url=http://somewebsite.com/docs/DOC2609

but it just indexes the login page only.

  • 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-06-04T05:09:56+00:00Added an answer on June 4, 2026 at 5:09 am

    My guess is that the authentication method this page of yours uses is not one of the HTTP authentication methods that curl supports out-of-the-box.

    The HTTP authentication is basic — some might say trivial — and it is fundamentally insecure in its most basic form (literally, ‘basic’ mode HTTP authentication sends the users’ password over the wire in plain text, as one of the request headers). I only ever see it used in conjunction with HTTPS, and even that’s pretty rare these days.

    HTTP authentication is generally eschewed in favor of either an HTTP PUT or POST request over HTTPS, usually fortified with some kind of cross-site request forgery (CSRF) prevention measure, or an OAUTH2 strategy (which typically defers the issue to the authentication broker’s implementation).

    Your problem is, curl doesn’t know about any of this. If you program in python, you may find the requests package helpful (and more modern than curl in its design to boot). Solr won’t care either way, if you are calling its HTTP API properly.

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

Sidebar

Related Questions

I want use page that has this form: <form method=post action=modules.php?name=search> <input onkeypress=FKeyPress(this); onkeydown=FKeyDown(this);
I want to post on twitter wall but don't want that user can edit
I want to do a HTTP POST of the format as follows, <?xml version=1.0
I want to post some data via javascript to another domain. Something like: http://www.othersite.com/submitfunnyname?name=blah
If I have a HTTP based RESTful service and I want to POST a
I want to use this function: http://www.frankmacdonald.co.uk/php/post-to-wordpress-with-php.html Its used to post to Wordpress using
I want to post a message on the user's facebook wall using access token.
I've read that setting document.domain = example.com lets me access the parent domain from
I am using : function AuthenticateUser(alias, password) { //$(document).unbind('keypress'); $(#Login).unbind(click); $.getJSON(RPC_URL + ?c=User&password= +
I'm writing a rest service which accepts json documents with http post. I can

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.