Coder Social home page Coder Social logo

Comments (3)

Buddyboy-git avatar Buddyboy-git commented on July 2, 2024 1

Yes. Sorry. I meant to get back here earlier. The code above is about the 20th version.
But the ValidateStatus isn't the issue either even though it is being used incorrectly...
I am logging in successful reguardless of that parameter. status 200 has proved that in other attempts.
Plus I went out an duplicated this issue in a Python script also last night.
The website uses iFrames which is probably contributing to the difficulty of my scripts not maintaining persistance.
I will probably skip this part of the project until I get further along and then contact the site developer for a little guidance.
I'm pretty sure I'm missing a simple header parameter. I loaded up the Python request with a bunch of headers including User-Agent, but it's still a no go.
I haven't capture a cookie or a token manually yet to be able to send back on my 2nd request. I don't feel too bad, because DIO and other HTTP packages can't either.

Sorry to waste your time by opening this issue.

from dio.

AlexV525 avatar AlexV525 commented on July 2, 2024

Please provide a minimal reproducible example.

from dio.

kuhnroyal avatar kuhnroyal commented on July 2, 2024

Please format your code.

You have configured the validateStatus callback to always return true and so every response is treated as success. That's why the file is being downloaded independent of the status code.

from dio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.