# getURL

**URL:** <https://forum.kirupa.com/t/geturl/262076>\
**Category:** Uncategorized\
**Created:** [June 3, 2008, 5:10am UTC](https://forum.kirupa.com/t/geturl/262076 "2008-06-03T05:10:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kerepuki](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kerepuki](https://forum.kirupa.com/u/kerepuki)\
**Post date:** [June 3, 2008, 5:10am UTC](https://forum.kirupa.com/t/geturl/262076/1 "2008-06-03T05:10:50Z")

</div>

Hi!

I am trying to user getURL with a question mark in it…

ie getURL(“default.html?something\_here=1”);

but it ignores everything after the question mark.

Anyone know a way to pass this in AS2?

Thanks!!!

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [June 3, 2008, 6:36am UTC](https://forum.kirupa.com/t/geturl/262076/2 "2008-06-03T06:36:01Z")

</div>

try:

```auto
getURL("http://www.yoursite.com/pathto/default.html?something_here=1");

```

if that doesn’t work, I believe if you replace the getURL with this, you can acheive the same thing

```auto

var myLV:LoadVars = new LoadVars();
myLV.send("http://www.yoursite.com/pathto/default.html?something_here=1", "_blank");
//also try:
//myLV.send("http://www.yoursite.com/pathto/default.html?something_here=1", "_blank", "GET");

```

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [June 3, 2008, 1:43pm UTC](https://forum.kirupa.com/t/geturl/262076/3 "2008-06-03T13:43:44Z")

</div>

Your code was probably not working because…

i assume you are using the “?” for the server… right ?  
in this case you have to give the full absolute URL. ie: from http…

and just use the second parameter for getURL too… linke…"\_blank"  
it will work just fine…

🙂

---

<div class="post-metadata">

**Author:** ![kerepuki](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kerepuki](https://forum.kirupa.com/u/kerepuki)\
**Post date:** [June 4, 2008, 11:22pm UTC](https://forum.kirupa.com/t/geturl/262076/4 "2008-06-04T23:22:10Z")

</div>

Yes I am using the ? to set a variable on the page a value.

creatify, your method works so thank you!

I will also play with your method sparkdemon but the relative method works 😉

Cheers!
