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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. WebRequest class questions

WebRequest class questions

Scheduled Pinned Locked Moved C#
questioncsharpsysadminsecurity
2 Posts 2 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
    Stevo Z
    wrote on last edited by
    #1

    Hi, I've Win app that communicates with a web page using Http via WebRequest.Create(site); etc... 1. How can I send a file to web server using Post method ? (It's Windows app, not web!!) 2. When communicating with web server, I get sometimes "System.Net.WebException: The server committed a protocol violation. Section=ResponseStatusLine" . I know It has something to do with .NET security settings. How can I tunrn it off ? (I'm not concerned about security since I've created the web site I'm connected to...) 3. I also use Ftp protocol for sending files and I'm getting strange Errors there too (like ftp command unrecognized etc...) and me feeling is that it has to be something with security too. thanx for answer zilo

    B 1 Reply Last reply
    0
    • S Stevo Z

      Hi, I've Win app that communicates with a web page using Http via WebRequest.Create(site); etc... 1. How can I send a file to web server using Post method ? (It's Windows app, not web!!) 2. When communicating with web server, I get sometimes "System.Net.WebException: The server committed a protocol violation. Section=ResponseStatusLine" . I know It has something to do with .NET security settings. How can I tunrn it off ? (I'm not concerned about security since I've created the web site I'm connected to...) 3. I also use Ftp protocol for sending files and I'm getting strange Errors there too (like ftp command unrecognized etc...) and me feeling is that it has to be something with security too. thanx for answer zilo

      B Offline
      B Offline
      B A
      wrote on last edited by
      #2

      hi you can upload , download files with "WebClient" class in .net. such as follow : WebClient client = new WebClient(); client.UploadFile(...)

      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