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. http request and reply in c# by adding headers also

http request and reply in c# by adding headers also

Scheduled Pinned Locked Moved C#
csharpsysadmin
3 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.
  • Y Offline
    Y Offline
    yeswanthkumar
    wrote on last edited by
    #1

    I want to send a http request from client to server by adding some headers and want to retrieve back those headers at server side .can some one give me the whole code for this i.e., including clent and server if possible. Thank you in advance .

    A 1 Reply Last reply
    0
    • Y yeswanthkumar

      I want to send a http request from client to server by adding some headers and want to retrieve back those headers at server side .can some one give me the whole code for this i.e., including clent and server if possible. Thank you in advance .

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      When you send those extra headers to the server, you do so by adding them to the collection of default headers, on the server side you can do the same. You can extract them from the headers collection attached with the request. We do not provide "whole code" for anything, there are however several ways to get the code or explanation from CodeProject, first of all search for this concept "headers c# http client" in the top right corner, and find yourself a useful article. Secondly, consider using Google and append " codeproject" to search for project content, and the best way is to show us what you have done. Show us your attempt at solving this problem, and we will help you with making it work.

      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

      Y 1 Reply Last reply
      0
      • A Afzaal Ahmad Zeeshan

        When you send those extra headers to the server, you do so by adding them to the collection of default headers, on the server side you can do the same. You can extract them from the headers collection attached with the request. We do not provide "whole code" for anything, there are however several ways to get the code or explanation from CodeProject, first of all search for this concept "headers c# http client" in the top right corner, and find yourself a useful article. Secondly, consider using Google and append " codeproject" to search for project content, and the best way is to show us what you have done. Show us your attempt at solving this problem, and we will help you with making it work.

        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

        Y Offline
        Y Offline
        yeswanthkumar
        wrote on last edited by
        #3

        Thank You

        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