cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl POST difficulties

From: Bret Rilling <lnxexpert_at_gmail.com>
Date: Thu, 15 Dec 2005 20:25:36 -0600

Hello all,

I just don't know where to go from here...
I am trying to POST to:
http://inventory.overture.com/d/searchinventory/suggestion/

The post script:
curl -vvv --referer
"inventory.overture.com/d/searchinventory/suggestion/" --user-agent
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" -d
stst=@overture_post.txt
http://inventory.overture.com/d/searchinventory/suggestion/

The overture_post.txt contents:
mkt=us&lang=en_US&term=linux+servers&x=7&y=7

Everytime I POST I do not get any results back, just the same page:
http://inventory.overture.com/d/searchinventory/suggestion/

I used Ethereal to capture the packets between my browser and their
site to ensure I had the correct path and method (Content-Type:
application/x-www-forum-urlencoded thus "-d" option)

Here is -vvv debug of the transaction:
###############################
KingKong# curl -vvv --user-agent "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.0)" -d stst=@overture_post.txt
http://inventory.overture.com/d/searchinventory/suggestion/
* About to connect() to inventory.overture.com port 80
* Trying 66.35.238.14... connected
* Connected to inventory.overture.com (66.35.238.14) port 80
> POST /d/searchinventory/suggestion/ HTTP/1.1
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
> Host: inventory.overture.com
> Accept: */*
> Content-Length: 23
> Content-Type: application/x-www-form-urlencoded
>
> stst=@overture_post.txtHTTP/1.1 200 OK
< Date: Fri, 16 Dec 2005 01:21:50 GMT
< Server: Apache/1.3.27 (Unix) mod_perl/1.27 mod_throttle/3.1.2
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
<html><head>
<title>Keyword Selector Tool</title>
<style TYPE="text/css">
<!--
  A {text-decoration:none;}
  A:hover {text-decoration:underline;}
-->
</style>
</head>
<body bgcolor=#FFFFFF onLoad="window.focus(); if(document.stst.term !=
null) document.stst.term.focus();">
<form action="/d/searchinventory/suggestion/" method="POST"
target="_top" name="stst">
<center>
<table border=0 width="270" border=0 cellspacing=0 cellpadding=4
bgcolor=#FFFFFF>
<tr><td align=left>

<font face="verdana,sans-serif" size=2>
<b>Keyword&nbsp;Selector&nbsp;Tool</b><p>
<font size=1>Not sure what search terms to bid on?<br>Enter a term
related to your site and we will show you:
<li>&nbsp;Related searches that include your term
<li>&nbsp;How many times that term was searched on last month
<p><b>Get suggestions for:</b>&nbsp;&nbsp;(may take up to 30 seconds)<br>
<input type=hidden name=mkt value="us">
<input type=hidden name=lang value="en_US">
<input type=text name=term size=20 value="">
<input type=image border=0 src=/images/shared/b.gif width=17 height=18
align=absmiddle>
<p><font face="verdana,sans-serif" size=1><b>Note:</b> All suggested
search terms are subject to our standard editorial review process.
</td></tr></table>
</form>
<script language="Javascript">
  var s_pageName = document.title;
</script>
<script language="Javascript"
src="http://www.overture.com/d/global/s_code_remote.js"></script>

* Connection #0 to host inventory.overture.com left intact
* Closing connection #0
###############################

***Here is the html form on their webpage
:http://inventory.overture.com/d/searchinventory/suggestion/
###############################
<form action="/d/searchinventory/suggestion/" method="POST"
target="_top" name="stst">
<center>
<table border=0 width="270" border=0 cellspacing=0 cellpadding=4
bgcolor=#FFFFFF>
<tr><td align=left>

<font face="verdana,sans-serif" size=2>
<b>Keyword&nbsp;Selector&nbsp;Tool</b><p>

<font size=1>Not sure what search terms to bid on?<br>Enter a term
related to your site and we will show you:
<li>&nbsp;Related searches that include your term
<li>&nbsp;Estimated number of times that term was searched on last month
<p><b>Get suggestions for:</b>&nbsp;&nbsp;(may take up to 30 seconds)<br>
<input type=hidden name=mkt value="us">
<input type=hidden name=lang value="en_US">
<input type=text name=term size=20 value="">
<input type=image border=0 src=/images/shared/b.gif width=17 height=18
align=absmiddle>
<p><font face="verdana,sans-serif" size=1><b>Note:</b> All suggested
search terms are subject to our standard editorial review process.
</td></tr></table>
</form>
Received on 2005-12-16