Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Download ICS from outlook.com using HttpClient

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Aug 31, 2025 at 11:51 comment added steb @jdweng yea I agree it is weird in this case to get a 302 to an error html-page, downloading ics-files is probably not meant for a browser anyways. But I guess people download the file using the browser and import it or whatever so maybe they want to give a nice looking error page (that shows "error 500" and nothing else :-D). The error code is sent to the errorpage in the query-pars. Anyways, the problem is solved, Edge helped me generate the working useragent. Thanks!
Aug 31, 2025 at 11:39 comment added jdweng @steb Useragent is the type of browser being used. When useragent is wrong usually a bad request 400 is returned and not 302. Postman will not change the useragent. How did you find the error?
Aug 31, 2025 at 11:36 comment added steb Awesome Michał. I did try to copy the same header values (among MANY others) as the Edge browser use but that did not do it so I kind of let it go coz I though it udner the hood added something else to the reqest. However, when I let the browser generate a curl and ps script it modified the useragent to a working one. Many thanks for the suggestion!
Aug 31, 2025 at 11:33 vote accept steb
Aug 31, 2025 at 11:33 comment added steb @jdweng Postman and Bruno did not work for me, they behave exactly the same as any low level client, you need to know and provide the correct useragent och accept which is the problem here. Thanx anyways.
Aug 31, 2025 at 10:34 comment added jdweng You can get the same using Postman Control Panel and getting the Raw HTTP. Like I said above the HTTP Header UserAgent was set wrong in this case.
Aug 31, 2025 at 10:17 history answered Michał Turczyn CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /