Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Re: Problem with Custom Suggestion Provider

$
0
0

David,

 

Getting the HTTP error 400 "Bad Request" (e.g., URL syntax error) is one of the common problems any developer faces when doing network programming.

 

The first thing to do is to identify the source of the problem--getting the error is a good start ;-).

 

To do so you need to inspect the HTTP request header that is sent when you click on the suggestion by using an HTTP packet inspector/sniffer/spy (you name it). This application could be a mere add-on to your web browser or a desktop application.

 

Then you will be able to spot the syntax error in the URL passed in the HTTP request. If it's gibberish for you, paste the full request header in your reply alongside with the one that works manually and I'll will do it for you.

 

Cheers,

Pascal Perry

 

P.S.: An HTTP request header looks like the following (number of lines varies):

 

GET /directory/file.html HTTP/1.1

Host: www.example.com

Connection: keep-alive

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36

Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4



Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>