Submit using curl


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Submit using curl
# 8  
Old 06-04-2010
I have a new problem in another site, but i think that's the same thing. can you take a look. the command that i'm doing is this:
curl -L "http://webapp.csrs.nrcan.gc.ca/field/Scripts/CSRS_PPP_main_e.pl?user_name=CGIS0134&customer_email=dmbl84@gmail.com&session_id=849c1c1630e7523eec0 fcf9e4945a58cc851b1818e69" -F rfile_upload=@CASC2270.09o -F process_type=Static -F sysref_system=ITRF -F return_email=dmbl84@gmail.com -F cmd_process_type=std -F return_email=dmbl84@gmail.com -F language=en -F SUBMIT=START > aux.html

and the file that i upload is the same.
# 9  
Old 06-06-2010
login

Looked at Online Database (CSRS Online Database) which redirected me to a login screen. No surprises there but I can't WireShark (WS) the packets. You can install it for Windows or Linux from the WS download page. Tell WS to filter HTTP or you will get too much data.

I'm guessing, but I think to automate the csrs.nrcan.gc.ca site you'll need to automate the login, grab the session_id and cookies it generates, then send the file and the appropriate cookies. It may be easier or harder than the other site, I can't tell without signing up. PERL with the proper modules could probably do it.

If you're running Windows, maybe the PPP Direct utility would work better for you. Once set up you can drag and drop files to it for processing. It might also work under Wine for Linux.

It seems that both sites could use a decent batching API where you just give it a list of files in a text file to work on. Probably surveyors would find that very useful.

I've never used these services, I'm just happy to get my GPX files to display on Google Maps. What exactly do you get back from these sites, a more accurate file?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. Shell Programming and Scripting

Using cURL to submit a post form

I am trying to write a shell script to use curl in order to automate downloading data from a website. The URL with the post form is here: http://try-db.org/de/InfoBySpecies.php . I have a list of about 1800 different species I want to check. For Example, choose the first species and use the... (2 Replies)
Discussion started by: hansvg
2 Replies

4. UNIX for Dummies Questions & Answers

how to submit several commands together

Dear all, I have a simple question. I have many cut commands like below to run. I am wondering how to just type and submit all the commands at once and then each of the command will be run automaticaly one by one. Thanks a lot! cut -d ' ' -f 3-2002 ... (4 Replies)
Discussion started by: forevertl
4 Replies

5. Post Here to Contact Site Administrators and Moderators

Where to submit my scripts

have a doubt. Where I can submit shell scripts done by me ? (5 Replies)
Discussion started by: linuxadmin
5 Replies

6. News, Links, Events and Announcements

where to submit my work?

Hello sir, I worked out some features using java,shell programming and modified the bash shell. We have come up with 13 new features. I want to know where should I submit my work so that it would be of some use to the open source professionals :confused: (1 Reply)
Discussion started by: nsharath
1 Replies

7. Forum Support Area for Unregistered Users & Account Problems

cant submit anything

hello admins, i dont use unix.com very often - but when i do have questions, i submit them at the site - but now I cannot submit anything in any forum on the site. The is the only forum i could add a new thread. its tells me that my account could be de-righted, or that im tring to submit... (1 Reply)
Discussion started by: congo
1 Replies

8. Shell Programming and Scripting

Cannot submit a background job

Hi all, I am currently facing a problem when i am submitting a script to run in the background to collect statistics round the clock on an AIX box. I don't have root authority nor can I set it in cron. So when i submit the job, it runs fine, but won't let me signoff. It prompts me that... (2 Replies)
Discussion started by: tansha
2 Replies

9. Shell Programming and Scripting

How to submit cron jobs?

How can I write a script to submit a perl script as a cron job but only have it execute once? After it has executed once, I would like it to automatically insert itself again into cron. I want to avoid the situation where I schedule a cron job to run once a day, but end up with multiple... (4 Replies)
Discussion started by: siegfried
4 Replies
Login or Register to Ask a Question