Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: [Delphi/Indy] How to read HTTP Headers after POST  (Read 8717 times)

0 Members and 1 Guest are viewing this topic.

kage20

    Topic Starter


    Rookie

    [Delphi/Indy] How to read HTTP Headers after POST
    « on: December 18, 2008, 07:18:41 PM »
    Hello,
    I am writing File Uploader to some filehosting service like Rapidshare. This service page is in php/ajax and i don't know how to read HTTP Headers when I sending my file by program. Program works and realy sending file(watching in firewall) but HTTP Look capture only this
    from POST
    Code: [Select]
    POST /upload.php HTTP/1.0
    Connection: keep-alive
    Content-Type: multipart/form-data; boundary=--------121908025933140
    Content-Length: 62500
    Host: www55.uploading.com
    Accept: text/html, */*
    Accept-Encoding: identity
    User-Agent: Mozilla/3.0 (compatible; Indy Library)
    and this from incoming headers
    Code: [Select]
    HTTP/1.1 200 OK
    Server: nginx
    Date: Fri, 19 Dec 2008 02:00:57 GMT
    Content-Type: text/html
    Connection: close

    and it all but when I sending file by internet browser is this much more and service page generete special Header X-Process-ID what looks that
    Code: [Select]
    x-progress-id: 3b43aab5855291ee2116a6a1e3f86270so how to sending my file with my program like internet browser?
    thx for help