Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
Todavía obtengo un 200 cuando AllowAutoRedirect está configurado como falso

Traté de seguir una respuesta y esto es lo que tengo ahora:

 var response = string.Empty; HttpContent content = new StringContent(poststring); content.Headers.Remove("Content-Type"); content.Headers.TryAddWithoutValidation("Content-Type", "multipart/form-data; boundary=" + boundary); //const string contentType = "multipart/form-data; boundary=<calculated when request is sent>"; HttpRequestMessage request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = u, Content = content, }; var handler = new TemporaryRedirectHandler() { InnerHandler = new HttpClientHandler() { AllowAutoRedirect = false } }; HttpClient client = new HttpClient(handler); HttpResponseMessage result = await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead); return result;

El problema es que todavía obtengo un 200 y cuando miro mi solicitud en Fiddler no veo AllowAutoRdirect configurado en falso en ninguna parte. ¿Dónde debo capturar ese campo para incluirlo en la solicitud?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!