PDA

View Full Version : Vb help.


MysticalNeopian
11-19-2003, 03:10 PM
Why Am I getting an error here.. I have tried ussing

strBuyItem = "obj_info_id=" & infoID & "&stock_id=" & stock & "&brr=" & brr
strHagleItem = "obj_info_id=" & infoID & "&stock_id=" & stock & "&g=3"

Inet.Execute "http://www.neopets.com/haggle.phtml" & strBuyItem, "GET", "Referer: http://www.neopets.com/objects.phtml?type=...bj_type=9" (http://www.neopets.com/objects.phtml?type=...obj_type=") & vbCrLf & "Content-Type: application/x-www-form-urlencoded" & vbCrLf & "Accept-Language: en-us" & vbCrLf & "Accept-Encoding: gzip, deflate" & vbCrLf & "User-Agent: Mozilla/4.0 (compatiable; MSIE 6.0; Windows NT 5.1; yie6; www.ASPSimply.com; .NET CLR 1.0.3705)"

I keep getting "ERROR : Oops you have been directed to this page from the wrong place! If you KEEP getting this error, chances are you have some security settings enabled that are not letting you play Neopets correctly."

Radeonic
11-19-2003, 04:12 PM
1.http://www.neopets.com/haggle.phtml should be http://www.neopets.com/haggle.phtml?
2. your referer is wrong, there shouldn't be the ... in it.

MysticalNeopian
11-19-2003, 04:31 PM
I don't know why it had the ... in it when I posted. I don't have it in mine.. I had the hagle.phtml? in it just forgot to type it in. Still doesn't work though :-) The only thing I see different from my Headers using this and the headers using Ie is this -- User-Agent: Microsoft Url Control -6.00.862

btsx
11-19-2003, 06:36 PM
Originally posted by MysticalNeopian@Nov 19 2003, 01:31 PM
I don't know why it had the ... in it when I posted. I don't have it in mine.. I had the hagle.phtml? in it just forgot to type it in. Still doesn't work though :-) The only thing I see different from my Headers using this and the headers using Ie is this -- User-Agent: Microsoft Url Control -6.00.862

Well, I don't know if Neopets gives you that error if you are sending them Inet headers...and are you sure that the method is GET?

MysticalNeopian
11-19-2003, 06:42 PM
Yes, I am sure.. I'll write down everything exactly as it is returned threw the headers when I use IE and when I use my program. Give me 10 min.
ok

Threw Ie6

/haggle.phtml?obj_info_id=18736&stock_id=707818542&brr=1336
 Request Method: GET
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://www.neopets.com/objects.phtml?type=shop&obj_type=9
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; yie6; www.ASPSimply.com; .NET CLR 1.0.3705
Host: www.neopets.com
Connection: Keep-Alive
Cookie: Yeah Right;-)

Threw My Program

/haggle.phtml?obj_info_id=18736&stock_id=707818542&brr=1336
 Request Method: GET
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://www.neopets.com/objects.phtml?type=shop&obj_type=9
User-Agent: Microsoft URL Control - 6.00.8862
Content-Length: 175
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; yie6; www.ASPSimply.com; .NET CLR 1.0.3705
Host: www.neopets.com
Connection: Keep-Alive
Cookie: Yeah Right;-)

cool_aoe
11-19-2003, 07:04 PM
Wrong order.

Inet1.execute, "POST", "ideablah=" & text1.text & "354324", "Referer: http:Myvbdoesntworkanditsfuckingkillingme.com/Ohwell..causeigotanewps2"

EDIT: Oh.. Oops.. didnt answer ur Q.
that error is a wuss attempt at disabling programs. Just correct ur referer. Remember.. Ur referer is the page where that link (first one) would normally be found.

MysticalNeopian
11-19-2003, 07:19 PM
From everything that I see its all correct.

Iridium
11-19-2003, 07:25 PM
THROUGH

snailX
11-19-2003, 08:11 PM
are you trying to do a GET or POST?
looks like you're trying to do something inbetween now :lol:

GET doesn't have Content-Length
why do you have 2 user agents?
if you want to POST you also need the content-type thing

MysticalNeopian
11-20-2003, 01:08 AM
Inet.Execute "http://www.neopets.com" & strBuyItem, "Get", , "Referer: http://www.neopets.com/objects.phtml?type=...bj_type=9" (http://www.neopets.com/objects.phtml?type=shop&obj_type=9") & vbCrLf & "Content-Type: application/x-www-form-urlencoded" & vbCrLf & "User-Agent: Mozilla/4.0 (compatiable; MSIE 6.0; Windows NT 5.1; yie6; www.ASPSimply.com; .NET CLR 1.0.3705)"


, "Get", , "Referer

I Had

, "Get", "Referer

The Reason i had everything added in my previous post is because I had tried sending what I thought was necessary then i just kept adding more and more too it because nothing was working till I looked at the code a little bit and realised I was missing the , :oops: