how to decide URL 
Author Message
 how to decide URL

I want to use "post" to submit my sequence automatically to
http://www.*-*-*.com/
will I use? what kind of content should I use?
$req->content('match=www&errors=0'); Please Help! The code is:
#!/usr/bin/perl

use LWP::Simple;
use LWP::UserAgent;

$ua = new LWP::UserAgent;
my $req = new HTTP::Request 'POST',' http://www.*-*-*.com/
+post/Entrez/query?uid=9254694&form=6&db=m&Dopt=r';
$req->content_type('application/x-www-form-urlencoded');
$req->content('match=www&errors=0');

my $res = $ua->request($req);
print $res->as_string,"\n";

Here is the output:
HTTP/1.1 200 OK
Connection: close
Date: Tue, 08 Apr 2003 02:33:07 GMT
Via: 1.1 www.ncbi.nih.gov
Server: Apache
Content-Type: text/html
Client-Date: Tue, 08 Apr 2003 02:33:28 GMT
Client-Peer: 130.14.29.110:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Title: Entrez Error
X-Cache: MISS from www.ncbi.nih.gov

<html>
<head>
<TITLE>Entrez Error</TITLE>
</head>
<body>
<HR>
<H1>Error</H1><P>
This link contained an data type unknown to Entrez.
</body>
</html>

Thanks in advance!



Sat, 24 Sep 2005 22:28:57 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to decide the URL

2. How to decide the URL

3. Help me decide what talks to give at YAPC this year

4. Help me decide what talks to give at YAPC this year

5. Help me decide what talks to give at YAPC this year

6. Help me decide what talks to give at YAPC this year

7. Code for deciding week number?

8. Quickly deciding which netblock an IP belongs too?

9. Version 4.1, what is decided?

10. URL->Text->URL

11. convert escape url to unescaped url

12. URL - How can I tell from within PERL if a URL is Up

 

 
Powered by phpBB® Forum Software