C
C#2d ago
Anton

AngleSharp doesn't send request on SubmitForm

I'm trying to automate some tasks at uni. At this point, I'm trying to reset the times of lessons to the correct value in the online registry. I figured I'd use something more serious than manually doing http requests, ended up implementing it in AngleSharp. The issue I'm facing is that SubmitAsync runs, but doesn't actually send any requests. It's supposed to send a Post request. https://github.com/AntonC9018/ScheduleLib/blob/163a747b62e87ff24ba3cada39d73277e75bd473/src/OnlineRegistry/OnlineRegistry/PublicApi.cs#L313 I made a logging handler on http client, I don't see any Post requests there. https://github.com/AntonC9018/ScheduleLib/blob/163a747b62e87ff24ba3cada39d73277e75bd473/src/OnlineRegistry/OnlineRegistry/PublicApi.cs#L465 Here's where I make it. https://github.com/AntonC9018/ScheduleLib/blob/163a747b62e87ff24ba3cada39d73277e75bd473/src/OnlineRegistry/OnlineRegistry/PublicApi.cs#L76 I have checked with the debugger and the DocumentRequest gets created, and I even get a response document back after it executes. I guess some caching might be taking place. But why would it hit the cache on a Post request? Any ideas why this would be happening?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?