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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:37:29+00:00 2026-05-22T16:37:29+00:00

the page at https://qrng.physik.hu-berlin.de/ provides a high bit rate quantum number generator web service

  • 0

the page at https://qrng.physik.hu-berlin.de/ provides a high bit rate quantum number generator web service and I’m trying to access that service.

However I could not manage to do so. This is my current code:

using System;
using System.Collections.Generic;
using System.Linq;
using S=System.Text;
using System.Security.Cryptography;
using System.IO;
namespace CS_Console_App
{
    class Program
    {
        static void Main()
        {
            System.Net.ServicePointManager.Expect100Continue = false;
            var username = "testuser";
            var password = "testpass";
            System.Diagnostics.Debug.WriteLine(Post("https://qrng.physik.hu-berlin.de/", "username="+username+"&password="+password));
            Get("http://qrng.physik.hu-berlin.de/download/sampledata-1MB.bin");
        }
        public static void Get(string url)
        {
            var my_request = System.Net.WebRequest.Create(url);
            my_request.Credentials = System.Net.CredentialCache.DefaultCredentials;
            var my_response = my_request.GetResponse();
            var my_response_stream = my_response.GetResponseStream();
            var stream_reader = new System.IO.StreamReader(my_response_stream);
            var content = stream_reader.ReadToEnd();
            System.Diagnostics.Debug.WriteLine(content);
            stream_reader.Close();
            my_response_stream.Close();
        }
        public static string Post(string url, string data)
        {


            string vystup = null;
            try
            {
                //Our postvars
                byte[] buffer = System.Text.Encoding.ASCII.GetBytes(data);
                //Initialisation, we use localhost, change if appliable
                System.Net.HttpWebRequest WebReq = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url);
                //Our method is post, otherwise the buffer (postvars) would be useless
                WebReq.Method = "POST";
                //We use form contentType, for the postvars.
                WebReq.ContentType = "application/x-www-form-urlencoded";
                //The length of the buffer (postvars) is used as contentlength.
                WebReq.ContentLength = buffer.Length;
                //We open a stream for writing the postvars
                Stream PostData = WebReq.GetRequestStream();
                //Now we write, and afterwards, we close. Closing is always important!
                PostData.Write(buffer, 0, buffer.Length);
                PostData.Close();
                //Get the response handle, we have no true response yet!
                System.Net.HttpWebResponse WebResp = (System.Net.HttpWebResponse)WebReq.GetResponse();
                //Let's show some information about the response
                Console.WriteLine(WebResp.StatusCode);
                Console.WriteLine(WebResp.Server);

                //Now, we read the response (the string), and output it.
                Stream Answer = WebResp.GetResponseStream();
                StreamReader _Answer = new StreamReader(Answer);
                vystup = _Answer.ReadToEnd();

                //Congratulations, you just requested your first POST page, you
                //can now start logging into most login forms, with your application
                //Or other examples.
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return vystup.Trim() + "\n";

        }
    }

}

I’m having 403 forbidden error when I try to do a get request on http://qrng.physik.hu-berlin.de/download/sampledata-1MB.bin.

After debugging abit, I’ve realised that even though I’ve supplied a valid username and password, the response html that was sent after my POST request indicate that I was actually not logon to the system after my POST request.

Does anyone know why is this the case, and how may I work around it to call the service?

Bump. can anyone get this to work or is the site just a scam?

  • 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-22T16:37:29+00:00Added an answer on May 22, 2026 at 4:37 pm

    The site is surely not a scam. I developed the generator and I put my scientific reputation in it. The problem is that you are trying to use the service in a way that was not intended. The sample files were really only meant to be downloaded manually for basic test purposes. Automated access to fetch data into an application was meant to be implemented through the DLLs we provide.
    On the other hand, I do not know of any explicit intent to prevent your implementation to work. I suppose if a web browser can log in and fetch data, some program should be able to do the same. Maybe only the login request is just a little more complicated. No idea. The server software was developed by someone else and I cannot bother him with this right now.

    Mick

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

Sidebar

Related Questions

I have to login into a https web page and download a file using
I can retrieve the text of a web page, let's say https://stackoverflow.com/questions with some
I am trying Node.js to get all the titles of this page: https://www.odesk.com/jobs/braintree I
I am trying to understand the code in this page: https://github.com/corroded/git-achievements/blob/gh-pages/git-achievements and I'm kinda
I'm trying to pull the content from the following Facebook page: https://graph.facebook.com/100000123344690/feed I'm already
I'm currently trying to pull the wall from this event page: https://www.facebook.com/event.php?eid=139373546157232 , but
I encountered this page https://www.google.com/accounts/ServiceLogin , a Google service login page that (beyond just
Here's the page: https://www.testmasters.net/test/ssltest2.aspx When I go to it (in firefox or chrome), it
I am looking at the twitter api page https://dev.twitter.com/ and I noticed that they
My clients home page is https://www.quakereadykit.com/store/home.php This was given to me by a previous

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.