• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Post problem

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
krelman
Asked:
krelman
1 Solution
 
sundayboysCommented:
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now