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 / C++ / MFC
  4. http GET/POST request through proxy

http GET/POST request through proxy

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmin
3 Posts 3 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.
  • C Offline
    C Offline
    Chintan
    wrote on last edited by
    #1

    Sir, my computer is running under the proxy server. I want to developed application which is able to make http GET and POST request to a specified server. C.R.Naik

    R 1 Reply Last reply
    0
    • C Chintan

      Sir, my computer is running under the proxy server. I want to developed application which is able to make http GET and POST request to a specified server. C.R.Naik

      R Offline
      R Offline
      rrrado
      wrote on last edited by
      #2

      Send GET/POST as usually, instead that you will connect your socket to proxy server instead of HTTP server. Headers will remail the same, in simple case (no proxy authorization ...)


      rrrado

      G 1 Reply Last reply
      0
      • R rrrado

        Send GET/POST as usually, instead that you will connect your socket to proxy server instead of HTTP server. Headers will remail the same, in simple case (no proxy authorization ...)


        rrrado

        G Offline
        G Offline
        geo_m
        wrote on last edited by
        #3

        good behavior is also to send the complete url of the request, which is not necessary when using direct connection. Instead of GET /index.htm HTTP/1.1 Header: Value which is allowed for direct connecting, you should use the full syntax: GET http://www.codeguru.com/index.htm HTTP/1.1 Header: Value from this the proxy will be able to know, where you want to connect ;)

        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