I am using dlang-requests. I need authentificate on https://scihub.copernicus.eu/dhus/login and than do some data-parsing.

    MultipartForm form;
    form.add(formData("login_username", "Suliman"));
    form.add(formData("login_password", "123")); // changed
auto content = postContent("https://scihub.copernicus.eu/dhus/login";, form);
    writeln("Output:");
    writeln(content);

Return error about login pass. So it's seems that I need to add BasicAuthentication method type. But how to add it?


Browser console show next: https://snag.gy/VXaq2R.jpg

Reply via email to