473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Get request with string that contains ",jpg"

1
Hi,

Have a strange case where I try to make a GET request using jQuery.

Expand|Select|Wrap|Line Numbers
  1. $.ajax({
  2.         type: 'GET',
  3.         url: 'MyMethod?param=ABC.ABC',
  4.         timeout: 10000,
  5.         contentType: 'application/x-www-form-urlencoded; charset=UTF-8',        
  6.         success: function (data) {
  7.         },
  8.         error: function (xhr, status, error) {      
  9.         }
  10.     });

The method above works fine. But if I change the URL to

'MyMethod?param=ABC.jpg',

it's not working, the method (MyMethod) never gets called. Could anyone explain this?

I'm using jQuery 1.9.1
Nov 27 '14 #1
2 1323
Dormilich
8,658 Expert Mod 8TB
it's not working, the method (MyMethod) never gets called.
does that mean the server script fails or that you don’t even have a request sent?
Dec 15 '14 #2
Dormilich
8,658 Expert Mod 8TB
note: application/x-www-form-urlencoded is an invalid content-type for GET requests.
Jan 6 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Matt | last post by:
The JSP page needs to send XML request string to another JSP page when the user clicks submit button, I wonder how to get started because when user click submit button, it will send the form to...
9
by: booksnore | last post by:
I am writing some code to search for strings that contain every letter of the alphabet. At the moment I am using the method below to check to see if a string contains every letter of the alphabet....
2
by: Michael Lang | last post by:
Is there anyway to get an anchor passed on a request string.... e.g mypage.aspx#myanch in the mypage code behind i want to be able to get the string "myanch"... Basically I want to navigate...
13
by: nishit.gupta | last post by:
Is their any fuction available in C++ that can determine that a string contains a numeric value. The value cabn be in hex, int, float. i.e. "1256" , "123.566" , "0xffff" Thnx
6
by: stanleyhsieh | last post by:
Hi all! I'm new here! I was wondering how I can check if a string contains only "A-Za-z0-9_" and ".". I tried the following code function check_validstring($check_validstring) { ...
0
by: Borse, Ganesh | last post by:
Hi, Am new to python. May someone please help me know this? How can we check whether one big string contains another small string? E.g. bigstring="python anaconda boa cobra" smallone="boa"
7
by: Karch | last post by:
I need to find the fastest way in terms of storage and searching to determine if a given string contains one of a member of a list of strings. So, think of it in terms of this: I have a string such...
4
by: Jeff | last post by:
Hey ..NET 3.5 I'm trying to search a string to determine if the string contains </table>, but string.Contains don't find it. I've used WebRequest/WebReponse to retrieve the html from a...
1
by: Jon Skeet [C# MVP] | last post by:
On Apr 30, 3:56 pm, Raja <rajesh.mad...@gmail.comwrote: Well, in fact it's *not* working fine - it's not behaving the same on SQL server as it would be in normal code. String.Contains is case-...
8
by: SMJT | last post by:
Does anyone know why the string contains function always returns true if the token is an empty string? I expected it to return false. "AnyOldText".Contains("") or...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.