Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. HttpWebRequest TimeOut On an Https channel while posting data

HttpWebRequest TimeOut On an Https channel while posting data

Scheduled Pinned Locked Moved C#
cssquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SatyaDY
    wrote on last edited by
    #1

    Hi All, I am using HttpWebRequest and HttpWebResponse object to upload a file over HTTPS Channel. My code works fine when I upload a small size file (Less than 2K). When I try to upload a bigger file, HttpWebRequest is Timing Out.(The operation has timed-out.) Here is the snippet of the code I am using HttpWebResponse Resp = (HttpWebResponse) Req.GetResponse(); Stream responseStream = Resp.GetResponseStream(); Encoding enc = Encoding.GetEncoding(1252); // Windows default Code Page StreamReader loResponseStream = new StreamReader(responseStream,enc); string stringResponse = loResponseStream.ReadToEnd(); LogFileStream.WriteLine("Http Response: " + Resp.StatusCode + " " + DateTime.Now.ToString().Trim()+"\n"); responseStream.Close(); oResponseStream.Close(); Does any body having clue what to do in such kind of scenario?? Thanks in advance. Satya Satya

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups