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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:52:02+00:00 2026-05-18T11:52:02+00:00

I am trying to log into a website to send SMS via a windows

  • 0

I am trying to log into a website to send SMS via a windows phone 7 app. I have 2 providers working but when I try Vodafone I am running into an error.

From what I gather it seems that the response does not contain cookies, or they are not being read. The request logs in ok and the response I get back is the correct page but it contains no cookies.

The Url:

RequestUrl = String.Format("https://www.vodafone.ie/myv/services/login/Login.shtml?username={0}&password={1}", userSettings.Username, userSettings.Password),

The Request:

     Request = (HttpWebRequest)WebRequest.Create((requestCollection.CurrentRequest().RequestUrl));

        if (Request.CookieContainer == null)
        {
            Request.CookieContainer = cookieJar.CookieContainer;
            Request.AllowAutoRedirect = true;
            Request.AllowReadStreamBuffering = true;
            Request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6";
        }

Where the code errors as the response cookies could not be evaluated:

    public void AddCookiesToContainer(HttpWebResponse response)
    {
         CookieCollection.Add(response.Cookies);
         CookieContainer.Add(response.ResponseUri, CookieCollection);
    }

And below is the debugger showing no cookies 🙁

alt text

alt text

alt text

  • 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-18T11:52:03+00:00Added an answer on May 18, 2026 at 11:52 am

    Which line of the code has the error?

    Have you verified that the service does return cookies? (i.e. If you make the same request from a PC)

    Edit:
    The remote host is returning cookies in it’s redirection to the index page but in that page there are no cookies in the response. This would explain why there are no cookies in the collection when you try and use it.

    Verify this behaviour against a PC client, inspect the body of the response from index.jsp ans this may contain information to help debug and check the documentation on how the process is supposed to work.

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

Sidebar

Related Questions

I'm trying to write a script so I can log into a website, but
I'm trying to create an app that multiple users would log into a server
I am trying to log some input values into an array via jquery and
I'm trying to lean PhantomJS. I need to log into a website, and perform
I am trying to log in to my website (www.trailbehind.com) and then send a
I'm trying to use HtmlUnit in Java to log into a website. First i
I'm trying to use a .Net WebBrowser control to log into a website and
I am trying to use PHP and cURL to log in to a website
I'm trying to write a Java class to log in to a certain website.
I am trying to log into facebook here is my code: <body> <form id=form1

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.