Results 1 to 40 of 87

Thread: Winsock: Making HTTP POST/GET Requests

Hybrid View

  1. #1
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Winsock: Making HTTP POST/GET Requests

    Great post ... i already learned some stuff with your app...

    But i was wondering...
    Once that i got all the cookie data and stuff with logging in...

    How do i manage to send that cookie data with another post request?
    I tried with inet1.execute.... but wont work


    Thanks again for this tutorial

  2. #2
    Lively Member
    Join Date
    Aug 2008
    Posts
    75

    Re: Winsock: Making HTTP POST/GET Requests

    Quote Originally Posted by batori
    Great post ... i already learned some stuff with your app...

    But i was wondering...
    Once that i got all the cookie data and stuff with logging in...

    How do i manage to send that cookie data with another post request?
    I tried with inet1.execute.... but wont work


    Thanks again for this tutorial
    store it in a global var...
    How To Make A Youtube Downloader
    I use Visual Studio 2008 Pro...

  3. #3
    New Member
    Join Date
    Jul 2009
    Posts
    1

    Exclamation Re: Winsock: Making HTTP POST/GET Requests

    Hi.
    Help!!! Some symbols like + and = don't send using WinHTTPRequest.Send
    And how to send multiple variables?

  4. #4
    New Member
    Join Date
    Jul 2009
    Posts
    4

    Re: Winsock: Making HTTP POST/GET Requests

    Thank you very much for the tutorial. This is the only place I could find that had a tut about the winsock and http.

    I have made a new thread about this problem here if you would be so kind as to read it

    I can log into phpbb forums but when I try to post I get

    Invalid Session. Please resubmit the form.

    I'm sending the following to the server:

    POST /community/posting.php?mode=post&f=26&sid=e5ab54e065e67b736f0e04e30287e880 HTTP/1.0
    Host: www.phpbb.com
    Accept: "/"
    Content-Type: application/x-www-form-urlencoded
    Referer: http://www.phpbb.com/community/ucp.php
    Content-Length: 54
    Connection: Keep-Alive
    Cache-Control: No-Cache
    Cookie: phpbb3mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3 A5%3A%2286360%22%3B%7D; phpbb3mysql_sid=e5ab54e065e67b736f0e04e30287e880

    subject=Thanks&description=&message=Thanks&post=submit

  5. #5
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Winsock: Making HTTP POST/GET Requests

    Quote Originally Posted by Under_Developed View Post
    Thank you very much for the tutorial. This is the only place I could find that had a tut about the winsock and http.

    I have made a new thread about this problem here if you would be so kind as to read it

    I can log into phpbb forums but when I try to post I get

    Invalid Session. Please resubmit the form.

    I'm sending the following to the server:
    Probably sending a bad/expired session id.

    Cookie: phpbb3mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3 A5%3A%2286360%22%3B%7D; phpbb3mysql_sid=e5ab54e065e67b736f0e04e30287e880
    You'll need to parse out the cookie and session id that the server sends back to you, put it in a variable, and send it with future GET/POST requests.

  6. #6
    New Member
    Join Date
    Jul 2009
    Posts
    4

    Re: Winsock: Making HTTP POST/GET Requests

    Thank you for the reply will try that.

  7. #7
    New Member
    Join Date
    Dec 2009
    Posts
    1

    Re: Winsock: Making HTTP POST/GET Requests

    Hi,
    how attach jpg image in your code
    please help

  8. #8
    New Member
    Join Date
    Jan 2010
    Posts
    3

    Re: Winsock: Making HTTP POST/GET Requests

    Great program, I'm using winsock and I'm running into a problem and I noticed your program does the same thing

    In your program, use the GET method and go to

    news.yahoo.com

    when the data comes in, scroll all the way to the bottom of the data,
    you'll notice that it is truncated. This is just an example, there are tons of other web sites that this happens to too.

    I've been getting headaches on how to fix this problem, I need to be able to retrieve web page data with winsock. Got any ideas?
    Last edited by HookahSchwa; Jan 6th, 2010 at 12:57 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width