Sponsored Content
Top Forums Shell Programming and Scripting Using cURL to submit a post form Post 302676441 by hansvg on Tuesday 24th of July 2012 02:50:41 PM
Old 07-24-2012
Thank you for your help. Much appreciated.

I was successfully able to submit my post to with this command: curl -d id1=29 -d submit=Download http://try-db.org/de/DnldTraitMeas.php > 29result.html

The resulting page has the filename of the temporary file that gets created. I can then script out the url to wget the actual tab delimited data.

Cheers
This User Gave Thanks to hansvg For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

maintaining form post session using curl

Hello, I have searched for a good part of the day, but cannot seem to find an answer to this. I hope this is an appropriate forum for my question. I am wanting to download a blog web page using a script. It requires username and password login. I have tried the following (an example) to no... (1 Reply)
Discussion started by: Allasso
1 Replies

2. Shell Programming and Scripting

PHP Help with Form Submit

Hi, I have a custom HTML form that has a couple radio buttons and a text field that requires a number. I'm not a php programmer and could use some help with putting together php code to calculate a total based on the radio button selection and the text field number. ... (3 Replies)
Discussion started by: nck
3 Replies

3. Shell Programming and Scripting

using wget to submit a form on linksys router

I'm trying to use wget to submit a form. I have tried to dig out what is actually being "posted" and where, using tamperdata (see below). http://ubuntuforums.org/attachment.php?attachmentid=109123&d=1239224127 Here is my wget command: wget --http-user=xyz --http-password=xyz... (1 Reply)
Discussion started by: mike909
1 Replies

4. Ubuntu

Submit using curl

I'm trying to upload a file to a page using curl and after uploading that file i want to store the redirecting page so i can download the results. I'm using the command: curl "http://apps.gdgps.net/kag_upload.php?kag_type=static&kag_frequency=dual&kag_latency=accurate&... (8 Replies)
Discussion started by: limadario
8 Replies

5. Shell Programming and Scripting

Can't submit a form.

hello my script is submitting POST-data to a site (its not my first script, i've done these before many times (include parsing scripts) but this one is tough) so the problem is i'm submitting a form with firefox and in firebug i see WHAT exactly i'm submitting then when i do EXACTLY the... (28 Replies)
Discussion started by: tip78
28 Replies

6. Shell Programming and Scripting

Curl Script - Post a file (multipart/form-data)

Hi All, I am trying to post an xml file (utf-16 encoded) using curl to a REST service. The REST service is expecting 'multipart/form-data' content type. curl -k -i -H "Content-Type=multipart/form-data" -F "filename=@file.xml;type=text/xml" -X POST -u <username>:<password> <endPointURL> ... (0 Replies)
Discussion started by: Anooja G
0 Replies

7. Shell Programming and Scripting

Curl to hit the submit button

Hello, I am looking to hit a URL using curl and click on submit button so that I can get the results. The below is the code <input name="tos_accepted" id="tos_accepted" class="button" type="submit" value="Yes, I Agree"/> <input name="tos_discarded" id="tos_discarded"... (1 Reply)
Discussion started by: Kochappa
1 Replies

8. Shell Programming and Scripting

Exec submit form in bash script

Hi All, I'm new in forum. Many congratulations to everyone for all work. I'm not an expert in bash script I've a problem with a sh file. The sh file run every t minuts and it read data from txt file and then compile form. Finally, the user, from the web browser click on send. The script... (0 Replies)
Discussion started by: Herbert
0 Replies

9. Web Development

Curl - post form issue

I'm having an issue with curl post form, I dont' understand what I'm mising. I would like to send a post command login/password to a form, quite simple in the paper. URL : http: // <myebsite> / login Here the form source code : <form action="/login_check" method="post"> <input... (3 Replies)
Discussion started by: Fred13
3 Replies

10. Web Development

CURL - Post Form Isssue ( sequel )

Hi, I write a new thread to discuss about my closed topic with new information ( /280990-curl-post-form-issue.html ) The previous post was closed because of missing informations, I didn't have access yet to server logs. ----------------------------------------------------------------------... (4 Replies)
Discussion started by: Fred13
4 Replies
SERVEFILE(1)							   User Commands						      SERVEFILE(1)

NAME
servefile - small HTTP-Server for temporary file transfer SYNOPSIS
servefile [-h] [--version] [-p PORT] [-u] [-s MAX_UPLOAD_SIZE] [-l] [--ssl] [--key KEY] [--cert CERT] [-a user:password] file/directory DISCLAIMER
Do not use this as a normal web server. This server is optimized for running a short time and to send files to other people, not for doing high-performance static file serving. DESCRIPTION
Servefile is a small HTTP-server intended for temporary file transfer mostly in the local network. It aims to make transferring single files as painless as possible and to replace tar/netcat solutions. With just a file as argument servefile serves just that one file and redirects all HTTP requests to that file. Uploads can be done with curl, wget (see EXAMPLES) or a normal browser. In upload mode with -u servefile creates a directory and saves all uploaded files into that directory. When uploading with curl or wget the filename is extracted from the path part of the url used for the upload. For SSL support python-openssl (pyssl) needs to be installed. If no key and cert is given, servefile will generate a key pair for you and display its fingerprint. In --tar mode the given file or directory will be packed on (each) request and piped to the client through the HTTP connection, thus serv- ing always the latest content of the directory and preventing temporary file creaton. Tar files will be created containing only the lowest directory name from the full path, so using /path/to/dir/ as file/directory argument will create a tar file starting with the dir/ direc- tory. When giving a file as argument, only the file without any path will be in the tarfile. Symlinks will not be dereferenced. COMMAND SUMMARY
positional arguments: file/directory file or directory (with -l or -u) which should be served or uploaded to optional arguments: -h, --help Show a help message and exit --version Show program's version number and exit -p PORT, --port PORT Port to listen on -u, --upload Enable uploads to a given directory -s MAX_UPLOAD_SIZE, --max-upload-size MAX_UPLOAD_SIZE Limit upload size in kB. Size modifiers are allowed, e.g. 2G, 12MB, 1B. -l, --list-dir Show directory indexes and allow access to all subdirectories --ssl Enable SSL. If no key/cert is specified one will be generated. --key KEY Key file to use for SSL. If no cert is given with --cert the key file will also be searched for a cert --cert CERT Certfile to use for SSL -a user:password, --auth user:password Set user and password for HTTP basic authentication --realm REALM Set a realm for HTTP basic authentication. This is an arbitrary string which is displayed when doing HTTP basic authentication -t, --tar Enable on the fly tar creation for given file or directory. Note: Download continuation will not be available. -c method, --compression method Set compression method, only in combination with --tar. Can be one of none, gzip, bzip2. -4, --ipv4-only Listen on IPv4 only -6, --ipv6-only Listen on IPv6 only EXAMPLES
Serving a single file with SSL and HTTP Basic auth: servefile --ssl --auth foo:bar the_file Enabling uploads to a directory: servefile -u dir/ Uploading file foo as bar to servefile via command line: curl -X PUT http://ip:port/bar --data-binary @foo curl -X POST http://ip:port/bar --data-binary @foo wget http://ip:port/bar --post-file=foo Serving a on the fly generated tar.gz file of a directory: servefile --tar -c gzip path/to/dir AUTHOR
servefile is developed by Sebastian Lohff <seba@someserver.de> servefile 0.4.2 April 2012 SERVEFILE(1)
All times are GMT -4. The time now is 03:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy