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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:13:01+00:00 2026-05-11T18:13:01+00:00

I am using a new service to pull xml data from a server. The

  • 0

I am using a new service to pull xml data from a server.

The service provides two methods of logging in, one via a url query:

http://<server>/login.asp?username=<User Name>&password=<Password>

and the server returns a cookie valid for 7 days. This means instead of logging in for every query (and making my script less efficient), I only need to login once a week.

I have just realised that I can’t do this since the script is not run from a web browser but from a cron script on the server. Is there a way to store cookies on my server, or do I have to go for the second method:

Token

The token is the username, passwork
and usergroup encrypted using the DES
algorithm with a key and a timestamp.
The token can be generated by any
application using the DES algorithm
with the appropriate key or the secure
call below can be used: the token is
contained in the body of the returned
page and is valid for one hour

I know nothing of this method. Can you point me in the right direction? Thanks.

Ed

  • 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-11T18:13:01+00:00Added an answer on May 11, 2026 at 6:13 pm

    Is there a way to store cookies on my
    server?

    Yes. Here’s how:

    curl -c cookies.txt http://<server>/login.asp?username=<User Name>&password=<Password>
    

    That will write them in netscape format to cookies.txt.

    Noah

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

Sidebar

Ask A Question

Stats

  • Questions 504k
  • Answers 504k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You should call equals on the constant since it avoids… May 16, 2026 at 3:07 pm
  • Editorial Team
    Editorial Team added an answer Not sure if this applies in Rails 3, but can… May 16, 2026 at 3:07 pm
  • Editorial Team
    Editorial Team added an answer Here are some relevant System properties with the values on… May 16, 2026 at 3:07 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm running a process from inside a windows service using: ProcessStartInfo processStartInfo = new
We're using the DTO pattern to marshal our domain objects from the service layer
I'm writing my first C# web application that connects to an XML based service.
We're using the Google CSE (Custom Search Engine) paid service to index content on
Using VB.NET on this one, in ASP.NET Web Forms. I have a property that
I am using a wcf service that I created, when both hosting machine and
I am new to WCF. I wrote a service and consumed the service in
We are using Moq to unit test our service classes, but are stuck on
I'm trying to host a WCF service inside a console app using Castle-Windsor 2.5
i have created a simple web service using Php Nusoap. its working correctly but

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.