Command-line HTML Post-method (medline in lynx)

V

vjp2.at

I am trying to write a unix proc that will pass my search terms to
a search engine that uses post-method. I don't really understand how
post works. Below is my attempt (I manually wrapped the one line proc
into sep lines for display purposes):

medline () { SRCH=`echo $* | sed -e 's/ /+/g'`; lynx -post_data
-accept_all_cookies 'http://www.ncbi.nlm.nih.gov/htbin-post
/Entrez/query_old?form=4&title=no&term='$SRCH'&submit=Search
&field=All+++++++++++++++++++Fields&mode=Automatic&relpubdate
=No+Limit&dispmax=100+&Dopt=d';}

Much obliged in advance for any help.




- = -
Vasos-Peter John Panagiotopoulos II, Columbia'81+, Bio$trategist
BachMozart ReaganQuayle EvrytanoKastorian
http://ourworld.compuserve.com/homepages/vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Health Reform means abolishing FDR's insurance tax exemption]
[To stop SPAM, Charge net-postage] [Abolish 16th (Inc Tx) Amendment]
 
T

Tad McClellan

[ Followups set ]


I am trying to write a unix proc that will pass my search terms to
a search engine that uses post-method. I don't really understand how
post works. Below is my attempt (I manually wrapped the one line proc
into sep lines for display purposes):

medline () { SRCH=`echo $* | sed -e 's/ /+/g'`; lynx -post_data
-accept_all_cookies 'http://www.ncbi.nlm.nih.gov/htbin-post
/Entrez/query_old?form=4&title=no&term='$SRCH'&submit=Search
&field=All+++++++++++++++++++Fields&mode=Automatic&relpubdate
=No+Limit&dispmax=100+&Dopt=d';}


What is your Perl question?

What is your HTML question?

What is your browser question?

What is your Unix question?


I see only an implied question of "how does POST work?", which is
independant of programming language, markup language, client
software and operating system.

ie. it is off-topic in each of the newsgroups you posted to.

Much obliged in advance for any help.


You should perhaps work on better partitioning your problem as
you seem to be casting about in several wrong arenas.

I'm not sure where "how does the web work" questions should
be posted, maybe comp.infosystems.www.misc I guess?
 
V

vjp2.at

I found the groups I posted to by searching groups.google.com for html
and "post method". The replies obtained were positively unAmerican.



- = -
Vasos-Peter John Panagiotopoulos II, Columbia'81+, Bio$trategist
BachMozart ReaganQuayle EvrytanoKastorian
http://ourworld.compuserve.com/homepages/vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Health Reform means abolishing FDR's insurance tax exemption]
[To stop SPAM, Charge net-postage] [Abolish 16th (Inc Tx) Amendment]
 
R

rf

(e-mail address removed)
I found the groups I posted to by searching groups.google.com for html
and "post method". The replies obtained were positively unAmerican.

Possible because the vast majority or people in the world are not American.
 
C

Chuck Dillon

I found the groups I posted to by searching groups.google.com for html
and "post method". The replies obtained were positively unAmerican.

The quality of response reflects the quality of your post.

Have you studied the doc and examples that NCBI provides at
http://eutils.ncbi.nlm.nih.gov/entrez/query/static/eutils_help.html?

I suggest you consider using one of the "API" that NCBI offers for
Entrez rather than coding the query syntax yourself. Or you might want
to see if there bioperl (http://www.bioperl.org) folks have something
that you can use without reinventing the wheel.

-- ced
- = -
Vasos-Peter John Panagiotopoulos II, Columbia'81+, Bio$trategist
BachMozart ReaganQuayle EvrytanoKastorian
http://ourworld.compuserve.com/homepages/vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Health Reform means abolishing FDR's insurance tax exemption]
[To stop SPAM, Charge net-postage] [Abolish 16th (Inc Tx) Amendment]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

POST 0
* or x ? 2
PCPRINT+CRLF perl script 2
POST/GET in comandline script 2
Indicators in Google Finance Spreadsheets 0
Online Link Checker 3
Blather-Adjusting Programs 4
Blather-Adjusting Programs 6

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top