Solved

Post problem

Posted on 2001-08-09
1
258 Views
Last Modified: 2010-04-06
hi
I use the TNMHTTP componnent to get and post
the get work good
I try to do post and it is not working
can some one give me example

I need to write file into servlet , how can i do it
what is "put"
there any one better way to sent a lot of file into servlet i am using apache

thank
0
Comment
Question by:krelman
1 Comment
 
LVL 1

Accepted Solution

by:
sundayboys earned 175 total points
ID: 6367629
hi
this is example:
1.write a txt file,like this:
name=csdn&url=csdn.net&password=1232&helpid=id1234
2.in delphi:
NMHTTP1.InputFileMode:=False;
NMHTTP1.OutputFileMode:=True; //must is True;
NMHTTP1.ReportLevel:=Status_Basic;
NMHTTP1.Post('http://127.0.0.1/test.asp','tmp.txt');


TNMHTTP is not a good choice,try TWebBrowser component.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question