http post method (17)

1 Name: #!/usr/bin/anonymous : 2008-01-28 18:44 ID:NcNCXPB1

What launguage would you use if you needed to send http post data to a webapp? I am looking to do a simple loop where it will send data to the app over and over.

2 Name: #!/usr/bin/anonymous : 2008-01-28 21:32 ID:Heaven

we won't help you write a crapflooder.

3 Name: #!/usr/bin/anonymous : 2008-01-28 22:23 ID:NcNCXPB1

No, I am looking to write a Client side GUI for a CGI app. The loop is for attacking when the no attack timer has expired and for auto searching a building (you have to click each room of a 8X8 (something like that) grid). Although a language that can do GUI would be preferred command line is ok.

The reason I want to write a client side gui instead of using the standard gui is because

A. it would reduce bandwidth because of the way the CGI app that processes data works (input information, return a "this document has been moved" redirection page to the CGI app that displays the GUI). My way circumvents their slow gui and just stores a copy of the map, current weapons, current ammo, position, average damage per attempt with weapons (misses are common), Enemy average health (enemies have health based on species) current skills, Latest messages, People in room, and so on...

B. It would allow a more advanced gui then what they offer.

C. It makes things less tedious.

I am not looking for you guys to build it, I am just looking for a recommendation of what language to program it in.

4 Name: #!/usr/bin/anonymous : 2008-01-28 23:56 ID:X5KYHqRG

VB.NET

5 Name: #!/usr/bin/anonymous : 2008-01-30 06:11 ID:EgpqXQak

libcurl

6 Name: #!/usr/bin/anonymous : 2008-01-30 20:13 ID:Heaven

curl -F

7 Name: #!/usr/bin/anonymous : 2008-01-30 23:52 ID:Heaven

I have an idea. Let's respond to this thread with useless one-word answers!

8 Name: #!/usr/bin/anonymous : 2008-01-31 01:05 ID:0tDItpOT

Any language will be fine, really. A language with an easy-to-use way to do web stuff would be preferable, of course. Try perl if you can be bothered with Tk, or any .NET language.

Mind though that the people who made that CGI app might not be happy about what you're doing.

9 Name: #!/usr/bin/anonymous : 2008-02-01 13:24 ID:Heaven

If they don't like people scraping their pages and hitting their CGI scripts, they should provide a proper RPC interface of some sort. :-)

10 Name: #!/usr/bin/anonymous : 2008-02-01 19:43 ID:Heaven

>>9
Only if they also don't mind people not seeing their website. Which, if they're running ads or something, they might object to a little.

11 Name: #!/usr/bin/anonymous : 2008-02-02 12:27 ID:Heaven

If their focus is on ads, they are failing at the Internet.

12 Name: ☆ゆたか☆ : 2008-02-05 21:05 ID:nj+EAZYv

('д')

13 Name: #!/usr/bin/anonymous : 2008-02-09 16:34 ID:Heaven

>>7 Search engines exist for a reason

14 Name: High Fructose!nIP2DlX816 : 2008-02-15 07:13 ID:mN1GU3bj

I would recommend Perl or Python (or perhaps VB.NET if you're on Windows), or, if you want a compiled language for performance purposes, C.

15 Name: #!/usr/bin/anonymous : 2008-02-15 11:28 ID:Heaven

>>14
Implementation speed in this case is unlikely to matter. Most of the program's execution time, it's going to be tied up with networking IO.

16 Name: #!/usr/bin/anonymous : 2008-02-16 13:39 ID:Heaven

>>15 Most of the program's real time perhaps, but the execution time is likely spent copying strings around. A zero-copy HTTP POST is possible in C (TCP_CORK, writev(), and sendfile() even make it pretty easy), and probably impossible in both perl and python.

17 Name: #!/usr/bin/anonymous : 2008-02-16 16:31 ID:Heaven

>>16
But it doesn't matter how efficient the code is if it's waiting on data more often than anything else. The speed of your file copy is not the bottleneck.

This thread has been closed. You cannot post in this thread any longer.