Results 1 to 3 of 3

Thread: HTTP stuff

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    HTTP stuff

    Is this a valid HTTP header for posting data?

    Code:
    POST /garnet/server/test.php HTTP/1.0
    Accept: */*
    
    s=something

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I think you need a Content-length so the web server knows how much data to expect (see the RFC):

    Code:
    >> POST /debug/test.asp HTTP/1.0
    >> Accept: */*
    >> Content-length: 32
    >> 
    >> s=something&y=somethingelse
    HTTP/1.1 200 OK
    Date: Wed, 26 Jun 2002 16:45:18 GMT
    Connection: Keep-Alive
    Content-Length: 2951
    Content-Type: text/html
    Set-Cookie: ASPSESSIONIDQGQQQSBC=JEFHAEEAKJIPEHDFKEDAJCAK; path=/
    Cache-control: private
    Server: HTTP Server
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Coolness

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